ltfi-wsap
Version:
Official Node.js/TypeScript SDK for LTFI-WSAP (Web System Alignment Protocol) by Kief Studio - Part of the LTFI ecosystem
38 lines (33 loc) • 737 B
text/typescript
/**
* LTFI-WSAP SDK Errors
*/
export class WSAPError extends Error {
constructor(message: string) {
super(message);
this.name = 'WSAPError';
}
}
export class AuthenticationError extends WSAPError {
constructor(message: string) {
super(message);
this.name = 'AuthenticationError';
}
}
export class ValidationError extends WSAPError {
constructor(message: string) {
super(message);
this.name = 'ValidationError';
}
}
export class NotFoundError extends WSAPError {
constructor(message: string) {
super(message);
this.name = 'NotFoundError';
}
}
export class RateLimitError extends WSAPError {
constructor(message: string) {
super(message);
this.name = 'RateLimitError';
}
}