Exceptions
Base Error Class
TaggedError
import { TaggedError } from 'funkcia/exceptions';
class UserNotFoundError extends TaggedError('UserNotFound') {
constructor(message?: string) {
super(message);
}
}TaggedError.is
import { TaggedError } from 'funkcia/exceptions';
if (TaggedError.is(error)) {
// error is a TaggedError
}General Exceptions
Panic
UnhandledException
NoValueError
FailedPredicateError
Last updated
Was this helpful?