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
org.refcodes.serial.BadMagicBytesSequenceException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,org.refcodes.mixin.LengthAccessor
,org.refcodes.mixin.MagicBytesAccessor
,org.refcodes.mixin.OffsetAccessor
,MagicBytesAccessor
,SequenceAccessor
public class BadMagicBytesSequenceException
extends BadMagicBytesException
implements org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.OffsetAccessor, SequenceAccessor
A
BadMagicBytesSequenceException
denotes bad (unexpected) magic bytes
encountered while processing a transmission Sequence
.- 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.ErrorCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthProperty
Nested classes/interfaces inherited from interface org.refcodes.serial.MagicBytesAccessor
MagicBytesAccessor.MagicBytesBuilder<B extends MagicBytesAccessor.MagicBytesBuilder<B>>, MagicBytesAccessor.MagicBytesMutator, MagicBytesAccessor.MagicBytesProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.OffsetAccessor
org.refcodes.mixin.OffsetAccessor.OffsetBuilder<B extends org.refcodes.mixin.OffsetAccessor.OffsetBuilder<B>>, org.refcodes.mixin.OffsetAccessor.OffsetMutator, org.refcodes.mixin.OffsetAccessor.OffsetProperty
Nested classes/interfaces inherited from interface org.refcodes.serial.SequenceAccessor
SequenceAccessor.SequenceBuilder<B extends SequenceAccessor.SequenceBuilder<B>>, SequenceAccessor.SequenceMutator, SequenceAccessor.SequenceProperty
-
Constructor Summary
ConstructorDescriptionBadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, String message) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, String aMessage, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, String message, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, String aMessage, Throwable aCause, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, int aLength, Throwable aCause, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, String message) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, String aMessage, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, String message, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, String aMessage, Throwable aCause, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, int aOffset, Throwable aCause, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, String message) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, String aMessage, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, String message, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, String aMessage, Throwable aCause, String aErrorCode) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, Throwable cause) BadMagicBytesSequenceException
(byte[] aMagicBytes, Sequence aSequence, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.serial.BadMagicBytesException
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.serial.MagicBytesAccessor
toMagicBytes, toMagicBytes
Methods inherited from interface org.refcodes.exception.Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
BadMagicBytesSequenceException
public BadMagicBytesSequenceException(byte[] aMagicBytes, Sequence aSequence, String message, Throwable cause) - Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
- Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
- Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
public BadMagicBytesSequenceException(byte[] aMagicBytes, Sequence aSequence, String aMessage, Throwable aCause, String aErrorCode) - Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
public BadMagicBytesSequenceException(byte[] aMagicBytes, Sequence aSequence, String aMessage, String aErrorCode) - Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
public BadMagicBytesSequenceException(byte[] aMagicBytes, Sequence aSequence, Throwable aCause, String aErrorCode) - Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
public BadMagicBytesSequenceException(byte[] aMagicBytes, Sequence aSequence, int aOffset, Throwable aCause, String aErrorCode) - Parameters:
aSequence
- The involvedSequence
.
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
BadMagicBytesSequenceException
-
-
Method Details
-
getSequence
Retrieves the value from theSequence
property.- Specified by:
getSequence
in interfaceSequenceAccessor
- Returns:
- The
Sequence
stored by theSequence
property.
-
getOffset
public int getOffset()- Specified by:
getOffset
in interfaceorg.refcodes.mixin.OffsetAccessor
-
getLength
public int getLength()- Specified by:
getLength
in interfaceorg.refcodes.mixin.LengthAccessor
-