Package org.moeaframework.problem
Class ProblemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.moeaframework.core.FrameworkException
org.moeaframework.problem.ProblemException
- All Implemented Interfaces:
Serializable
An exception that originated from a problem.
- See Also:
-
Constructor Summary
ConstructorDescriptionProblemException
(Problem problem) Constructs an problem exception originating from the specified problem.ProblemException
(Problem problem, String message) Constructs an problem exception originating from the specified problem with the given message.ProblemException
(Problem problem, String message, Throwable cause) Constructs an problem exception originating from the specified problem with the given cause.ProblemException
(Problem problem, Throwable cause) Constructs an problem exception originating from the specified problem with the given cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the problem responsible for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProblemException
Constructs an problem exception originating from the specified problem.- Parameters:
problem
- the problem responsible for this exception
-
ProblemException
Constructs an problem exception originating from the specified problem with the given cause.- Parameters:
problem
- the problem responsible for this exceptionmessage
- the message describing this exceptioncause
- the cause of this exception
-
ProblemException
Constructs an problem exception originating from the specified problem with the given message.- Parameters:
problem
- the problem responsible for this exceptionmessage
- the message describing this exception
-
ProblemException
Constructs an problem exception originating from the specified problem with the given cause.- Parameters:
problem
- the problem responsible for this exceptioncause
- the cause of this exception
-
-
Method Details
-
getProblem
Returns the problem responsible for this exception.- Returns:
- the problem responsible for this exception
-