Error Handling

This section describes about error object which this package throws.

Error objects

CANBus.Errors.CANBusValueErrorType
struct CANBusValueError <: CANBusError
    msg::String
    context::String
end

This error is thrown when passed value is invalid on specific context.

source
CANBus.Errors.CANBusOpenErrorType
struct CANBusOpenError <: CANBusError
    msg::String
    device::String
    status::String
end

This error is thrown when interface initialization function.

It's status code(3rd entry) is native error code of device driver.

source
CANBus.Errors.CANBusIOErrorType
struct CANBusIOError <: CANBusError
    msg::String
    context::String
    device::String
    status::String
end

This error is thrown when interface operation is failed.

It's status code(4th entry) is native error code of device driver.

source