java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
pl.polsl.rtsa.api.exception.DeviceException
pl.polsl.rtsa.api.exception.ConnectionException
- All Implemented Interfaces:
Serializable
Exception thrown when connection-related errors occur.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class pl.polsl.rtsa.api.exception.DeviceException
DeviceException.ErrorCode -
Constructor Summary
ConstructorsConstructorDescriptionConnectionException(String message) Creates a connection exception withDeviceException.ErrorCode.CONNECTION_FAILED.ConnectionException(String message, Throwable cause) Creates a connection exception withDeviceException.ErrorCode.CONNECTION_FAILEDand a cause.ConnectionException(DeviceException.ErrorCode errorCode, String message) Creates a connection exception with a specific error code.ConnectionException(DeviceException.ErrorCode errorCode, String message, Throwable cause) Creates a connection exception with a specific error code and cause. -
Method Summary
Methods inherited from class pl.polsl.rtsa.api.exception.DeviceException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConnectionException
Creates a connection exception withDeviceException.ErrorCode.CONNECTION_FAILED.- Parameters:
message- descriptive error message
-
ConnectionException
Creates a connection exception withDeviceException.ErrorCode.CONNECTION_FAILEDand a cause.- Parameters:
message- descriptive error messagecause- the underlying cause
-
ConnectionException
Creates a connection exception with a specific error code.- Parameters:
errorCode- the categorisingDeviceException.ErrorCodemessage- descriptive error message
-
ConnectionException
Creates a connection exception with a specific error code and cause.- Parameters:
errorCode- the categorisingDeviceException.ErrorCodemessage- descriptive error messagecause- the underlying cause
-