mirror of
https://github.com/DanilaFe/abacus
synced 2024-06-18 00:37:06 -07:00
25 lines
523 B
Java
25 lines
523 B
Java
package org.nwapw.abacus.exception;
|
|
|
|
/**
|
|
* Exception thrown if the function parameters do not match
|
|
* requirements.
|
|
*/
|
|
public class DomainException extends AbacusException {
|
|
|
|
/**
|
|
* Creates a new DomainException.
|
|
* @param reason the reason for which the exception is thrown.
|
|
*/
|
|
public DomainException(String reason) {
|
|
super("Domain error", reason);
|
|
}
|
|
|
|
/**
|
|
* Creates a new DomainException with a default message.
|
|
*/
|
|
public DomainException(){
|
|
this("");
|
|
}
|
|
|
|
}
|