-
- All Implemented Interfaces:
-
java.io.Serializable
public class UserException extends Exception
An exception that can be presented to the user using a localized message.
-
-
Constructor Summary
Constructors Constructor Description UserException(Integer userMessageId, Object args, Throwable cause)UserException(Integer userMessageId, Integer quantity, Object args, Throwable cause)UserException(String message, Throwable cause)UserException(UserException cause)
-
Method Summary
Modifier and Type Method Description StringgetUserMessage(Context context, Boolean includesCauses)Gets the localized user-facing message for this exception. -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UserException
UserException(UserException cause)
-
-
Method Detail
-
getUserMessage
String getUserMessage(Context context, Boolean includesCauses)
Gets the localized user-facing message for this exception.
- Parameters:
includesCauses- Includes nested UserException causes in the user message when true.
-
-
-
-