ur_rna.Utilities

## Class ExceptionHelper

- java.lang.Object
- - ur_rna.Utilities.ExceptionHelper

-     public class ExceptionHelper
      extends java.lang.Object

  Tools for helping with exceptions.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExceptionHelper()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `getMessage(java.lang.Throwable ex)` Java exceptions often contain no message or a few details *without* describing the actual error.
    `static java.lang.String` | `getStackTrace(java.lang.Throwable ex)` Gets the stack trace as a String (i.e.

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

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

- - ### Constructor Detail

    - #### ExceptionHelper

          public ExceptionHelper()

  - ### Method Detail

    - #### getMessage

          public static java.lang.String getMessage(java.lang.Throwable ex)

      Java exceptions often contain no message or a few details *without* describing the actual error. For example `IndexOutOfBoundsException` has the message "Index ... Size ..." but does not include "Index Out Of Bounds" in its message. `FileNotFoundException` includes the file path, but does not include "File not found". So when displaying the message to a user, one is forced to either show `Throwable.getMessage()` which shows meaningless information or `Throwable.toString()` which includes the full type name, e.g. "java.lang.nio.NoSuchFileException"

    - #### getStackTrace

          public static java.lang.String getStackTrace(java.lang.Throwable ex)

      Gets the stack trace as a String (i.e. the text that would be printed by printStackTrace)