Class ResourceException

All Implemented Interfaces:
Serializable

public class ResourceException extends RuntimeException
ResourceException can be used for terminating a program abruptly, specifically associating the problem with a Resource. Depending on the nature of the problem, clients can choose whether or not a call stack should be returned as well. This should be very rare, and would only indicate no usefulness of presenting that stack to the user.
See Also:
  • Constructor Details

    • ResourceException

      public ResourceException()
    • ResourceException

      public ResourceException(boolean hideStack)
    • ResourceException

      public ResourceException(@Nullable Resource resource)
    • ResourceException

      public ResourceException(@Nullable Resource resource, boolean hideStack)
    • ResourceException

      public ResourceException(@Nullable Throwable cause)
    • ResourceException

      public ResourceException(@Nullable Throwable cause, @Nullable Resource resource)
    • ResourceException

      public ResourceException(@Nullable Throwable cause, @Nullable Resource resource, boolean hideStack)
    • ResourceException

      public ResourceException(String message)
    • ResourceException

      public ResourceException(String message, @Nullable Resource resource)
    • ResourceException

      public ResourceException(String message, @Nullable Resource resource, boolean hideStack)
    • ResourceException

      public ResourceException(String message, @Nullable Throwable cause)
    • ResourceException

      public ResourceException(String message, @Nullable Throwable cause, @Nullable Resource resource)
    • ResourceException

      public ResourceException(String message, @Nullable Throwable cause, @Nullable Resource resource, boolean hideStack)
  • Method Details

    • getResource

      public Optional<Resource> getResource()
    • isHideStack

      public boolean isHideStack()