Class BadMagicBytesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.refcodes.exception.AbstractIOException
org.refcodes.serial.SerialException
org.refcodes.serial.TransmissionException
org.refcodes.serial.BadMagicBytesException
- All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap, MagicBytesAccessor, MagicBytesAccessor
- Direct Known Subclasses:
BadMagicBytesSequenceException
A
BadMagicBytesException denotes bad (unexpected) magic bytes
encountered while processing a transmission.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface MagicBytesAccessor
MagicBytesAccessor.MagicBytesBuilder<B>, MagicBytesAccessor.MagicBytesMutator, MagicBytesAccessor.MagicBytesProperty -
Constructor Summary
ConstructorsConstructorDescriptionBadMagicBytesException(byte[] aMagicBytes, String message) Instantiates the classBadMagicBytesException.BadMagicBytesException(byte[] aMagicBytes, String aMessage, String aErrorCode) Instantiates the classBadMagicBytesException.BadMagicBytesException(byte[] aMagicBytes, String message, Throwable cause) Instantiates the classBadMagicBytesException.BadMagicBytesException(byte[] aMagicBytes, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classBadMagicBytesException.BadMagicBytesException(byte[] aMagicBytes, Throwable cause) Instantiates the classBadMagicBytesException.BadMagicBytesException(byte[] aMagicBytes, Throwable aCause, String aErrorCode) Instantiates the classBadMagicBytesException. -
Method Summary
Methods inherited from class AbstractIOException
getErrorCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface MagicBytesAccessor
toMagicBytes, toMagicBytesMethods inherited from interface Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
BadMagicBytesException
Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.aMessage- the messageaErrorCode- the error code- See Also:
-
BadMagicBytesException
public BadMagicBytesException(byte[] aMagicBytes, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.aMessage- the messageaCause- the causeaErrorCode- the error code- See Also:
-
BadMagicBytesException
Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.message- the messagecause- the cause- See Also:
-
BadMagicBytesException
Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.message- the message- See Also:
-
BadMagicBytesException
Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.aCause- the causeaErrorCode- the error code- See Also:
-
BadMagicBytesException
Instantiates the classBadMagicBytesException.- Parameters:
aMagicBytes- The according bad magic bytes.cause- the cause- See Also:
-
-
Method Details
-
getMagicBytes
public byte[] getMagicBytes()- Specified by:
getMagicBytesin interfaceMagicBytesAccessor
-