2017-09-01 23:06:45 -07:00
|
|
|
package org.nwapw.abacus.function;
|
2017-09-01 18:23:44 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Exception thrown if the function parameters do not match
|
|
|
|
* requirements.
|
|
|
|
*/
|
|
|
|
public class DomainException extends RuntimeException {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a new DomainException.
|
|
|
|
* @param reason the reason for which the exception is thrown.
|
|
|
|
*/
|
|
|
|
public DomainException(String reason) {
|
|
|
|
super(reason);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a new DomainException with a default message.
|
|
|
|
*/
|
|
|
|
public DomainException(){
|
|
|
|
this("Domain Error");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|