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
org.refcodes.serial.BadCrcChecksumSequenceException
- All Implemented Interfaces:
Serializable
,org.refcodes.exception.ErrorCodeAccessor
,org.refcodes.exception.Trap
,org.refcodes.mixin.LengthAccessor
,org.refcodes.mixin.OffsetAccessor
,SequenceAccessor
Thrown in case a
Sequence
CRC checksum did not match the according
calculated CRC checksum.- 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.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
ConstructorDescriptionBadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, String message) BadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, String aMessage, String aErrorCode) BadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, String message, Throwable cause) BadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, String aMessage, Throwable aCause, String aErrorCode) BadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, Throwable cause) BadCrcChecksumSequenceException
(long aAttachedCrcChecksum, long aCalculatedCrcChecksum, Sequence aSequence, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.serial.TransmissionSequenceException
getLength, getOffset, getSequence
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
-
BadCrcChecksumSequenceException
-
BadCrcChecksumSequenceException
-
BadCrcChecksumSequenceException
-
BadCrcChecksumSequenceException
-
BadCrcChecksumSequenceException
-
BadCrcChecksumSequenceException
-
-
Method Details
-
getAttachedCrcChecksum
public long getAttachedCrcChecksum()Returns the CRC checksum being attached theSequence
data.- Returns:
- The according CRC checksum.
-
getCalculatedCrcChecksum
public long getCalculatedCrcChecksum()Returns the CRC checksum being calculated from theSequence
data.- Returns:
- The according CRC checksum.
-