Package com.oorian.html.js.share
Class ShareErrorEvent
java.lang.Object
com.oorian.messaging.events.Event<ShareListener>
com.oorian.messaging.events.client.ClientEvent<ShareListener>
com.oorian.html.js.share.ShareErrorEvent
Event fired when a share operation fails.
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShareErrorEvent(String message, String errorType) Constructs a ShareErrorEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(ShareListener listener) Dispatches this event to the specified listener.Returns the error type.Returns the error message.booleanReturns whether the user cancelled the share operation.toString()Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
Constructor Details
-
ShareErrorEvent
Constructs a ShareErrorEvent.- Parameters:
message- The error message.errorType- The type of error (e.g., "AbortError", "NotAllowedError").
-
-
Method Details
-
getMessage
Returns the error message.- Returns:
- The error message.
-
getErrorType
Returns the error type.Common error types:
- AbortError: User cancelled the share operation
- NotAllowedError: Permission denied or not triggered by user action
- TypeError: Invalid share data
- Returns:
- The error type.
-
isCancelled
public boolean isCancelled()Returns whether the user cancelled the share operation.- Returns:
- True if the user cancelled.
-
toString
-