# Class: com.pnfsoftware.jeb.util.base.Assert

A replacement for built\-in `assert`s. Production\-compatible assert\-likes. Do not throw [AssertionError](AssertionError) on failure; instead, a [RuntimeException](RuntimeException) is raised. 

 Assert methods throw [RuntimeException](RuntimeException). The stacktrace of such an exception is adjusted to reflect the actual code line where `a(...)` or `fail(...)` was called.

## Constructor: Assert


## Static Method: a
- parameter: `expression`, type: `boolean`
- parameter: `message`, type: `java.lang.String`

Description: Assert that a condition is true.
parameter: expression: condition to verify
parameter: message: optional failure message

## Static Method: a
- parameter: `expression`, type: `boolean`
- parameter: `message`, type: `java.lang.String`
- parameter: `args`, type: `java.lang.Object[]`

Description: Assert that a condition is true.
parameter: expression: condition to verify
parameter: message: optional failure message format
parameter: args: optional message format arguments

## Static Method: a
- parameter: `expression`, type: `boolean`

Description: Assert that a condition is true.
parameter: expression: condition to verify

## Static Method: debugFail
- parameter: `message`, type: `java.lang.String`

Description: Fail ONLY on debug builds. Use carefully; this method can yield side\-effect bugs on release builds that would have otherwise be caught in debug mode.
parameter: message: optional failure message

## Static Method: debugFail

Description: Fail ONLY on debug builds. Use carefully; this method can yield side\-effect bugs on release builds that would have otherwise be caught in debug mode.

## Static Method: debugFail
- parameter: `t`, type: `java.lang.Throwable`

Description: Fail only on debug builds by throwing the provided throwable, or logging it on release builds.
parameter: t: throwable to report

## Static Method: fail
- parameter: `message`, type: `java.lang.String`

Description: Unconditionally fail.
parameter: message: optional failure message

## Static Method: fail

Description: Unconditionally fail.

