Package com.pulumi.exceptions
Class ResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pulumi.exceptions.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 Summary
Constructors Constructor Description ResourceException()
ResourceException(boolean hideStack)
ResourceException(Resource resource)
ResourceException(Resource resource, boolean hideStack)
ResourceException(java.lang.String message)
ResourceException(java.lang.String message, Resource resource)
ResourceException(java.lang.String message, Resource resource, boolean hideStack)
ResourceException(java.lang.String message, java.lang.Throwable cause)
ResourceException(java.lang.String message, java.lang.Throwable cause, Resource resource)
ResourceException(java.lang.String message, java.lang.Throwable cause, Resource resource, boolean hideStack)
ResourceException(java.lang.Throwable cause)
ResourceException(java.lang.Throwable cause, Resource resource)
ResourceException(java.lang.Throwable cause, Resource resource, boolean hideStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Resource>
getResource()
boolean
isHideStack()
-
-
-
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()
-
-