me.maciejb.snappyflows.SnappyException.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snappy-flows_2.11 Show documentation
Show all versions of snappy-flows_2.11 Show documentation
Snappy compression Akka Streams flows
The newest version!
package me.maciejb.snappyflows
import akka.util.ByteString
class SnappyException(desc: String, causeOpt: Option[Exception] = None)
extends Exception(desc: String, causeOpt.orNull)
class InvalidChecksum(expected: Int, actual: Int)
extends SnappyException(s"Invalid checksum for chunk. Expected: 0x${expected.toHexString}, " +
s"actual 0x${actual.toHexString}.")
class InvalidHeader(header: ByteString) extends SnappyException(s"Invalid header: $header.")
class IllegalChunkFlag(flag: Int) extends SnappyException(s"Illegal chunk flag 0x${flag.toHexString}")