/**
* Error that contains user-friendly message to be shown in UI or API response.
*/exportclassUserErrorextendsError {
constructor(message: string) {
super(message);
Error.captureStackTrace(this, UserError);
}
publictoString(): string {
return`${this.message}`;
}
}