001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package edu.wpi.first.hal.can; 006 007/** 008 * Exception indicating that the CAN driver layer has not been initialized. This happens when an 009 * entry-point is called before a CAN driver plugin has been installed. 010 */ 011public class CANNotInitializedException extends RuntimeException { 012 private static final long serialVersionUID = -5982895147092686594L; 013 014 /** Constructs a new CANNotInitializedException with no message. */ 015 public CANNotInitializedException() { 016 super(); 017 } 018 019 /** 020 * Constructs a new CANNotInitializedException with {@code msg} as its detail message. 021 * 022 * @param msg the message 023 */ 024 public CANNotInitializedException(String msg) { 025 super(msg); 026 } 027}