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) BadMagicBytesException(byte[] aMagicBytes, String aMessage, String aErrorCode) BadMagicBytesException(byte[] aMagicBytes, String message, Throwable cause) BadMagicBytesException(byte[] aMagicBytes, String aMessage, Throwable aCause, String aErrorCode) BadMagicBytesException(byte[] aMagicBytes, Throwable cause) BadMagicBytesException(byte[] aMagicBytes, Throwable aCause, String aErrorCode) -
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
- Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
public BadMagicBytesException(byte[] aMagicBytes, String aMessage, Throwable aCause, String aErrorCode) - Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
-
Method Details
-
getMagicBytes
public byte[] getMagicBytes()- Specified by:
getMagicBytesin interfaceorg.refcodes.mixin.MagicBytesAccessor
-