simpler annotations

This commit is contained in:
Sergey Chernov 2023-03-13 15:28:49 +01:00
parent 8c73ec9e30
commit 6bc01e9534

View File

@ -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")