# Class: com.pnfsoftware.jeb.core.exceptions.JebRuntimeException

Base class for JEB runtime exceptions. 

 Public unchecked exception types exposed by JEB, as well as plugin\-specific runtime exceptions, should extend this class.

## Protected Constructor: JebRuntimeException


## Constructor: JebRuntimeException
- parameter: `cause`, type: `java.lang.Throwable`


## Constructor: JebRuntimeException
- parameter: `message`, type: `java.lang.String`

Description: Create an exception with a detail message.
parameter: message: the detail message

## Constructor: JebRuntimeException
- parameter: `message`, type: `java.lang.String`
- parameter: `cause`, type: `java.lang.Throwable`

Description: Create an exception with a detail message and cause.
parameter: message: the detail message
parameter: cause: the cause

## Method: getUnit
- return type: `com.pnfsoftware.jeb.core.units.IUnit`

Description: Get the unit associated with this exception.
return: the related unit, or `null`

## Method: setUnit
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.IUnit`

Description: Associate a unit with this exception.
parameter: unit: the related unit, or `null`

## Method: withUnit
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.IUnit`
- return type: `com.pnfsoftware.jeb.core.exceptions.JebRuntimeException`

Description: Associate a unit with this exception and return the same exception instance.
parameter: unit: the related unit, or `null`
return: this exception

