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 a CAN driver library entry-point was passed an invalid buffer.
009 * Typically, this is due to a buffer being too small to include the needed safety token.
010 */
011public class CANInvalidBufferException extends RuntimeException {
012  private static final long serialVersionUID = -7993785672956997939L;
013
014  /** Constructs a new CANInvalidBufferException with no message. */
015  public CANInvalidBufferException() {
016    super();
017  }
018
019  /**
020   * Constructs a new CANInvalidBufferException with {@code msg} as its detail message.
021   *
022   * @param msg the message
023   */
024  public CANInvalidBufferException(String msg) {
025    super(msg);
026  }
027}