Package de.japrost.jabudget.domain
Class DomainException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.japrost.jabudget.domain.DomainException
-
- All Implemented Interfaces:
java.io.Serializable
public class DomainException extends java.lang.Exception
Thrown on exceptions handling the domain.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DomainException(DomainFailure failure)
Create an instance.DomainException(DomainFailure failure, java.lang.Throwable cause)
Create an instance based on aThrowable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainFailure
getFailure()
Get the failure code.
-
-
-
Constructor Detail
-
DomainException
public DomainException(DomainFailure failure, java.lang.Throwable cause)
Create an instance based on aThrowable
.- Parameters:
failure
- the failure codecause
- the cause of the failure
-
DomainException
public DomainException(DomainFailure failure)
Create an instance.- Parameters:
failure
- the failure code
-
-
Method Detail
-
getFailure
public DomainFailure getFailure()
Get the failure code.- Returns:
- the code
-
-