simpler annotations
This commit is contained in:
parent
8c73ec9e30
commit
6bc01e9534
@ -24,14 +24,14 @@ annotation class ExtendableFormat
|
|||||||
* match the expected name, the [InvalidFrameException] will be thrown.
|
* match the expected name, the [InvalidFrameException] will be thrown.
|
||||||
*/
|
*/
|
||||||
@SerialInfo
|
@SerialInfo
|
||||||
@Target(AnnotationTarget.CLASS)
|
|
||||||
annotation class Framed
|
annotation class Framed
|
||||||
|
|
||||||
@SerialInfo
|
@SerialInfo
|
||||||
@Target(AnnotationTarget.CLASS)
|
|
||||||
annotation class CrcProtected
|
annotation class CrcProtected
|
||||||
|
|
||||||
open class InvalidFrameException(reason: String) : Exception(reason)
|
open class InvalidFrameException(reason: String) : Exception(reason)
|
||||||
class InvalidFrameHeaderException(reason: String = "Frame header does not match") : InvalidFrameException(reason)
|
class InvalidFrameHeaderException(reason: String = "Frame header does not match") : InvalidFrameException(reason)
|
||||||
class InvalidFrameCRCException : InvalidFrameException("Checksum CRC32 failed")
|
class InvalidFrameCRCException : InvalidFrameException("Checksum CRC32 failed")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user