Exceptions (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.util

## Class Exceptions

- java.lang.Object
- - org.bouncycastle.util.Exceptions

-     public class Exceptions
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Exceptions()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.IllegalArgumentException` | `illegalArgumentException(java.lang.String message, java.lang.Throwable cause)`
    `static java.lang.IllegalStateException` | `illegalStateException(java.lang.String message, java.lang.Throwable cause)`
    `static java.io.IOException` | `ioException(java.lang.String message, java.lang.Throwable cause)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Exceptions

          public Exceptions()

  - ### Method Detail

    - #### illegalArgumentException

          public static java.lang.IllegalArgumentException illegalArgumentException(java.lang.String message,
                                                                                    java.lang.Throwable cause)

    - #### illegalStateException

          public static java.lang.IllegalStateException illegalStateException(java.lang.String message,
                                                                              java.lang.Throwable cause)

    - #### ioException

          public static java.io.IOException ioException(java.lang.String message,
                                                        java.lang.Throwable cause)