com.amazon.redshift.plugin.httpserver.InternalServerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jdbc42 Show documentation
Show all versions of redshift-jdbc42 Show documentation
Java JDBC 4.2 (JRE 8+) driver for Redshift database
The newest version!
package com.amazon.redshift.plugin.httpserver;
import com.amazon.redshift.plugin.InternalPluginException;
/**
* Wrapper exception for http server errors.
*
* Thread can`t throw any checked exceptions from run(), so it needs to be wrapped into RuntimeException.
*/
public class InternalServerException extends InternalPluginException
{
/**
* Constructor.
*
* @param cause Throwable object.
*/
public InternalServerException(Throwable cause)
{
super(cause);
}
/**
* Wrap Exception in this class.
*
* @param exceptionToWrap Exception object.
*
* @return instance of this class.
*/
public static InternalServerException wrap(Exception exceptionToWrap)
{
return new InternalServerException(exceptionToWrap);
}
}