Class ComparableThrowable.Builder

  • Enclosing class:
    ComparableThrowable

    public static final class ComparableThrowable.Builder
    extends java.lang.Object
    Builds instances of type ComparableThrowable.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setMessage​(java.lang.String message)
      Initializes the value for the message attribute.
      void setThrowableClass​(java.lang.Class<? extends java.lang.Throwable> throwableClass)
      Initializes the value for the throwableClass attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setThrowableClass

        public void setThrowableClass​(java.lang.Class<? extends java.lang.Throwable> throwableClass)
        Initializes the value for the throwableClass attribute.
        Parameters:
        throwableClass - The value for throwableClass
      • setMessage

        public void setMessage​(java.lang.String message)
        Initializes the value for the message attribute.
        Parameters:
        message - The value for message