simpler annotations

This commit is contained in:
sergeych committed 2023-03-13 15:28:49 +01:00
1 parent 8c73ec9e30
commit 6bc01e9534
1 file changed
+2 -2
@@ -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")