Package net.groboclown.retval.problems
Class UnhandledExceptionProblem
- java.lang.Object
-
- net.groboclown.retval.problems.UnhandledExceptionProblem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetSourceException()Get the exception that caused this problem.java.lang.StringlocalMessage()A human-consumable message describing the problem.java.lang.StringtoString()static UnhandledExceptionProblemwrap(java.lang.Throwable source)Create anUnhandledExceptionProblemfrom an exception.
-
-
-
Method Detail
-
wrap
@Nonnull public static UnhandledExceptionProblem wrap(@Nonnull java.lang.Throwable source)
Create anUnhandledExceptionProblemfrom an exception.- Parameters:
source- source exception.- Returns:
- the exception wrapped in a problem.
-
localMessage
@Nonnull public java.lang.String localMessage()
Description copied from interface:ProblemA human-consumable message describing the problem.- Specified by:
localMessagein interfaceProblem- Returns:
- the message, localized for the end-user.
-
getSourceException
@Nonnull public java.lang.Throwable getSourceException()
Get the exception that caused this problem.- Returns:
- source exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-