@breautek/storm
Version:
Object-Oriented REST API framework
15 lines (14 loc) • 433 B
TypeScript
import { StormError } from './StormError';
/**
* A concrete error that accepts any arbitrary message string and optionally a code.
* It's not recommended to use this class as it will be hard to differentiate errors by
* tag name.
*/
export declare class RawError extends StormError<{
message: string;
code?: number;
}> {
constructor(message: string, code?: number);
getCode(): number;
getMessage(): string;
}