Package org.ngengine.stbimage
Class StbFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ngengine.stbimage.StbFailureException
- All Implemented Interfaces:
Serializable
Exception thrown when image decoding fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStbFailureException(String reason) Creates a decoder failure with an internal reason.StbFailureException(String reason, boolean userMessage) Creates a decoder failure. -
Method Summary
Modifier and TypeMethodDescriptionReturns the raw failure reason.booleanIndicates whether the exception message is already user-facing.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StbFailureException
Creates a decoder failure with an internal reason.- Parameters:
reason- failure reason
-
StbFailureException
Creates a decoder failure.- Parameters:
reason- failure reasonuserMessage- if true, the message is already suitable for direct user display
-
-
Method Details
-
getReason
Returns the raw failure reason.- Returns:
- reason string
-
isUserMessage
public boolean isUserMessage()Indicates whether the exception message is already user-facing.- Returns:
- true when message can be shown directly to end users
-