All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.stream.compression.CompressionException.scala Maven / Gradle / Ivy

package zio.stream.compression

/** Signals that exception occurred in compression/decompression */
class CompressionException private (message: String, cause: Exception) extends Exception(message, cause)

object CompressionException {
  def apply(message: String, cause: Option[Exception] = None) = new CompressionException(message, cause.getOrElse(null))

  def apply(cause: Exception) = new CompressionException(cause.getMessage(), cause)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy