- 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.TransmissionSequenceException
-
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,org.refcodes.mixin.LengthAccessor
,org.refcodes.mixin.OffsetAccessor
,SequenceAccessor
- Direct Known Subclasses:
BadCrcChecksumSequenceException
public class TransmissionSequenceException extends TransmissionException implements SequenceAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.OffsetAccessor
Thrown in case a givenSequence
cannot be processed.- 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.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.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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength()
int
getOffset()
Sequence
getSequence()
Retrieves the value from theSequence
property.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, String message, Throwable cause)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, String message)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, Throwable cause)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, String aMessage, Throwable aCause, String aErrorCode)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, String aMessage, String aErrorCode)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, Throwable aCause, String aErrorCode)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, String message, Throwable cause)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, String message)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, Throwable cause)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, String aMessage, Throwable aCause, String aErrorCode)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, String aMessage, String aErrorCode)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, Throwable aCause, String aErrorCode)
- Parameters:
aSequence
- The involvedSequence
.
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, int aLength, String message, Throwable cause)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, int aLength, String message)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, int aLength, Throwable cause)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, int aLength, String aMessage, Throwable aCause, String aErrorCode)
-
TransmissionSequenceException
public TransmissionSequenceException(Sequence aSequence, int aOffset, int aLength, String aMessage, String aErrorCode)
-
-
Method Detail
-
getSequence
public Sequence 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
-
-