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

Base class for JEB checked exceptions. 

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

## Constructor: JebException

Description: Create an exception with no detail message.

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

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

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

Description: Create an exception with a cause.
parameter: cause: the cause

## Constructor: JebException
- 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.JebException`

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

