Package rife.bld.operations.exceptions
Class ExitStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
rife.bld.operations.exceptions.ExitStatusException
- All Implemented Interfaces:
Serializable
When thrown, indicates that the exit status has changed due
to the operation execution.
- Since:
- 1.5
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static void
throwOnFailure
(int status) Throws anExitStatusException
when the status is a failure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
EXIT_SUCCESS
public static final int EXIT_SUCCESS- See Also:
-
EXIT_FAILURE
public static final int EXIT_FAILURE- See Also:
-
-
Constructor Details
-
ExitStatusException
public ExitStatusException(int exitStatus)
-
-
Method Details
-
getExitStatus
public int getExitStatus() -
throwOnFailure
Throws anExitStatusException
when the status is a failure.- Parameters:
status
- the status to check- Throws:
ExitStatusException
- when the provided status is different fromEXIT_SUCCESS
- Since:
- 1.5.7
-