Class StbFailureException

All Implemented Interfaces:
Serializable

public class StbFailureException extends RuntimeException
Exception thrown when image decoding fails.
See Also:
  • Constructor Details

    • StbFailureException

      public StbFailureException(String reason)
      Creates a decoder failure with an internal reason.
      Parameters:
      reason - failure reason
    • StbFailureException

      public StbFailureException(String reason, boolean userMessage)
      Creates a decoder failure.
      Parameters:
      reason - failure reason
      userMessage - if true, the message is already suitable for direct user display
  • Method Details

    • getReason

      public String 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