Program Listing for File exceptions.hpp

Return to documentation for file (include/myactuator_rmd/can/exceptions.hpp)

#ifndef MYACTUATOR_RMD__CAN__EXCEPTIONS
#define MYACTUATOR_RMD__CAN__EXCEPTIONS
#pragma once

#include <stdexcept>
#include <system_error>


namespace myactuator_rmd {
  namespace can {

    class SocketException: public std::system_error {
      public:
        using std::system_error::system_error;
    };

    class Exception: public std::runtime_error {
      public:
        using std::runtime_error::runtime_error;
    };

    class TxTimeoutError: public Exception {
      public:
        using Exception::Exception;
    };

    class LostArbitrationError: public Exception {
      public:
        using Exception::Exception;
    };

    class ControllerProblemError: public Exception {
      public:
        using Exception::Exception;
    };

    class ProtocolViolationError: public Exception {
      public:
        using Exception::Exception;
    };

    class TransceiverStatusError: public Exception {
      public:
        using Exception::Exception;
    };

    class NoAcknowledgeError: public Exception {
      public:
        using Exception::Exception;
    };

    class BusOffError: public Exception {
      public:
        using Exception::Exception;
    };

    class BusError: public Exception {
      public:
        using Exception::Exception;
    };

    class ControllerRestartedError: public Exception {
      public:
        using Exception::Exception;
    };

  }
}

#endif // MYACTUATOR_RMD__CAN__EXCEPTIONS