Class JebException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pnfsoftware.jeb.core.exceptions.JebException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdbException,DexDecEvaluationException,NotImplementedException,ProcessorException,SiglibException,TypeStringParseException
Base class for JEB checked exceptions.
Public checked exception types exposed by JEB, as well as plugin-specific checked exceptions, should extend this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an exception with no detail message.JebException(String message) Create an exception with a detail message.JebException(String message, Throwable cause) Create an exception with a detail message and cause.JebException(Throwable cause) Create an exception with a 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
-
JebException
public JebException()Create an exception with no detail message. -
JebException
Create an exception with a detail message.- Parameters:
message- the detail message
-
JebException
Create an exception with a cause.- Parameters:
cause- the cause
-
JebException
Create an exception with a detail message and cause.- Parameters:
message- the detail messagecause- the cause
-
-
Method Details
-
withUnit
Associate a unit with this exception and return the same exception instance.- Parameters:
unit- the related unit, ornull- Returns:
- this exception
-
setUnit
Associate a unit with this exception.- Parameters:
unit- the related unit, ornull
-
getUnit
Get the unit associated with this exception.- Returns:
- the related unit, or
null
-