org.cryptacular.StreamException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular;
import java.io.IOException;
/**
* Runtime exception thrown on stream IO errors. Effectively a runtime equivalent of {@link java.io.IOException}.
*
* @author Middleware Services
*/
public class StreamException extends RuntimeException
{
/**
* Creates a new instance with the given error message.
*
* @param message Error message.
*/
public StreamException(final String message)
{
super(message);
}
/**
* Creates a new instance with causing IO exception.
*
* @param cause IO exception to wrap.
*/
public StreamException(final IOException cause)
{
super("IO error", cause);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy