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>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface MagicBytesAccessor
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 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 org.refcodes.exception.Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
BadMagicBytesException
-
BadMagicBytesException
-
BadMagicBytesException
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
BadMagicBytesException
-
BadMagicBytesException
- Parameters:
aMagicBytes- The according bad magic bytes.
-
-
Method Details
-
getMagicBytes
public byte[] getMagicBytes()- Specified by:
getMagicBytesin interfaceorg.refcodes.mixin.MagicBytesAccessor
-