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.
|
||||
*/
|
||||
@SerialInfo
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class Framed
|
||||
|
||||
@SerialInfo
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class CrcProtected
|
||||
|
||||
open class InvalidFrameException(reason: String) : Exception(reason)
|
||||
class InvalidFrameHeaderException(reason: String = "Frame header does not match") : InvalidFrameException(reason)
|
||||
class InvalidFrameCRCException : InvalidFrameException("Checksum CRC32 failed")
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user