Class Result.NotSuccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.progrm_jarvis.javacommons.object.Result.NotSuccessException
- All Implemented Interfaces:
Serializable
An exception thrown whenever
Result.unwrap() is called on an error result.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotSuccessException(String message) Constructs a new exception with the specified message.NotSuccessException(String message, Throwable cause) Constructs a new exception with the specified message and cause.NotSuccessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new exception with the specified message and cause.NotSuccessException(Throwable cause) Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotSuccessException
Constructs a new exception with the specified message.- Parameters:
message- message describing the exception cause
-
NotSuccessException
Constructs a new exception with the specified message and cause.- Parameters:
message- message describing the exception causecause- cause of this exception
-
NotSuccessException
Constructs a new exception with the specified cause.- Parameters:
cause- cause of this exception
-
NotSuccessException
public NotSuccessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new exception with the specified message and cause.- Parameters:
message- message describing the exception causecause- cause of this exceptionenableSuppression- flag indicating whether suppression is enabled or disabled for this exceptionwritableStackTrace- flag indicating whether not the stack trace should be writable for this exception
-
NotSuccessException
public NotSuccessException()
-