Class ResourceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResourceException
    extends java.lang.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:
    Serialized Form
    • Constructor Detail

      • 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
                                 java.lang.Throwable cause)
      • ResourceException

        public ResourceException​(@Nullable
                                 java.lang.Throwable cause,
                                 @Nullable
                                 Resource resource)
      • ResourceException

        public ResourceException​(@Nullable
                                 java.lang.Throwable cause,
                                 @Nullable
                                 Resource resource,
                                 boolean hideStack)
      • ResourceException

        public ResourceException​(java.lang.String message)
      • ResourceException

        public ResourceException​(java.lang.String message,
                                 @Nullable
                                 Resource resource)
      • ResourceException

        public ResourceException​(java.lang.String message,
                                 @Nullable
                                 Resource resource,
                                 boolean hideStack)
      • ResourceException

        public ResourceException​(java.lang.String message,
                                 @Nullable
                                 java.lang.Throwable cause)
      • ResourceException

        public ResourceException​(java.lang.String message,
                                 @Nullable
                                 java.lang.Throwable cause,
                                 @Nullable
                                 Resource resource)
      • ResourceException

        public ResourceException​(java.lang.String message,
                                 @Nullable
                                 java.lang.Throwable cause,
                                 @Nullable
                                 Resource resource,
                                 boolean hideStack)
    • Method Detail

      • getResource

        public java.util.Optional<Resource> getResource()
      • isHideStack

        public boolean isHideStack()