nyla.solutions.core.exception.CommunicationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.core Show documentation
Show all versions of nyla.solutions.core Show documentation
This Java API provides support for application utilities (application configuration, data encryption, debugger, text processing, and more).
The newest version!
package nyla.solutions.core.exception;
/**
*
* CommunicationException provides a set of functions to
*
* @author Gregory Green
* @version 1.0
*/
public class CommunicationException extends FatalException
{
public static final String DEFAULT_ERROR_CODE = "COM000";
public static final String DEFAULT_ERROR_CATEGORY = "COMM";
/**
*
*/
public CommunicationException()
{
super();
this.setCode(DEFAULT_ERROR_CODE);
this.setCategory(DEFAULT_ERROR_CATEGORY);
}
/**
* @param aMessage
*/
public CommunicationException(String aMessage)
{
super(aMessage);
this.setCode(DEFAULT_ERROR_CODE);
this.setCategory(DEFAULT_ERROR_CATEGORY);
}
/**
* @param aThrowable
*/
public CommunicationException(Throwable aThrowable)
{
super(aThrowable);
this.setCode(DEFAULT_ERROR_CODE);
this.setCategory(DEFAULT_ERROR_CATEGORY);
}// --------------------------------------------
/**
* @param aMessage
* @param aThrowable
*/
public CommunicationException(String aMessage, Throwable aThrowable)
{
super(aMessage, aThrowable);
this.setCode(DEFAULT_ERROR_CODE);
this.setCategory(DEFAULT_ERROR_CATEGORY);
}
static final long serialVersionUID = CommunicationException.class.getName()
.hashCode();
}