Class Result.NotErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ru.progrm_jarvis.javacommons.object.Result.NotErrorException
All Implemented Interfaces:
Serializable
Enclosing interface:
Result<T,E>

public static class Result.NotErrorException extends RuntimeException
An exception thrown whenever Result.unwrapError() is called on a successful result.
See Also:
  • Constructor Details

    • NotErrorException

      public NotErrorException(String message)
      Constructs a new exception with the specified message.
      Parameters:
      message - message describing the exception cause
    • NotErrorException

      public NotErrorException(String message, Throwable cause)
      Constructs a new exception with the specified message and cause.
      Parameters:
      message - message describing the exception cause
      cause - cause of this exception
    • NotErrorException

      public NotErrorException(Throwable cause)
      Constructs a new exception with the specified cause.
      Parameters:
      cause - cause of this exception
    • NotErrorException

      public NotErrorException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Constructs a new exception with the specified message and cause.
      Parameters:
      message - message describing the exception cause
      cause - cause of this exception
      enableSuppression - flag indicating whether suppression is enabled or disabled for this exception
      writableStackTrace - flag indicating whether not the stack trace should be writable for this exception
    • NotErrorException

      public NotErrorException()