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
public class BadMagicBytesException extends TransmissionException implements MagicBytesAccessor
A
BadMagicBytesException
denotes bad (unexpected) magic bytes
encountered while processing a transmission.- See Also:
- Serialized Form
-
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.ErrorCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.serial.MagicBytesAccessor
MagicBytesAccessor.MagicBytesBuilder<B extends MagicBytesAccessor.MagicBytesBuilder<B>>, MagicBytesAccessor.MagicBytesMutator, MagicBytesAccessor.MagicBytesProperty
-
Constructor Summary
Constructors Constructor Description BadMagicBytesException(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
Modifier and Type Method Description byte[]
getMagicBytes()
Methods inherited from class org.refcodes.exception.AbstractIOException
getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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:
getMagicBytes
in interfaceorg.refcodes.mixin.MagicBytesAccessor
-