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,org.refcodes.exception.ErrorCodeAccessor,org.refcodes.exception.Trap,org.refcodes.mixin.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 org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface org.refcodes.serial.MagicBytesAccessor
MagicBytesAccessor.MagicBytesBuilder<B extends 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 org.refcodes.exception.AbstractIOException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.serial.MagicBytesAccessor
toMagicBytes, toMagicBytesMethods inherited from interface org.refcodes.exception.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 interfaceorg.refcodes.mixin.MagicBytesAccessor
-