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

public class JebException extends Exception
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 Details

    • JebException

      public JebException()
      Create an exception with no detail message.
    • JebException

      public JebException(String message)
      Create an exception with a detail message.
      Parameters:
      message - the detail message
    • JebException

      public JebException(Throwable cause)
      Create an exception with a cause.
      Parameters:
      cause - the cause
    • JebException

      public JebException(String message, Throwable cause)
      Create an exception with a detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause
  • Method Details

    • withUnit

      public JebException withUnit(IUnit unit)
      Associate a unit with this exception and return the same exception instance.
      Parameters:
      unit - the related unit, or null
      Returns:
      this exception
    • setUnit

      public void setUnit(IUnit unit)
      Associate a unit with this exception.
      Parameters:
      unit - the related unit, or null
    • getUnit

      public IUnit getUnit()
      Get the unit associated with this exception.
      Returns:
      the related unit, or null