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

com.amazon.redshift.plugin.httpserver.InternalServerException Maven / Gradle / Ivy

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); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy