mirror of https://github.com/DanilaFe/abacus
25 lines
525 B
Java
25 lines
525 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(null);
|
|
}
|
|
|
|
}
|