Class: UserVisibleError¶
core.UserVisibleError
An error whose message will be shown to the end user in the UI when it occurs. If an error is encountered in a formula and you want to describe the error to the end user, throw a UserVisibleError with a user-friendly message and the Coda UI will display the message.
Example
if (!url.startsWith("https://")) {
throw new coda.UserVisibleError("Please provide a valid url.");
}
See
Hierarchy¶
Error
↳ UserVisibleError
Constructors¶
constructor¶
• new UserVisibleError(message?
, internalError?
)
Use to construct a user-visible error.
Parameters¶
Name | Type |
---|---|
message? |
string |
internalError? |
Error |
Overrides¶
Error.constructor