@avonjs/avonjs
Version:
A fluent Node.js API generator.
17 lines (16 loc) • 428 B
TypeScript
import type Response from '../Http/Responses/AvonResponse';
import Exception from './Exception';
export default abstract class ResponsableException extends Exception {
/**
* Create an HTTP response that represents the object.
*/
toResponse(): Response;
/**
* Get the response code
*/
abstract getCode(): number;
/**
* Get the exception name
*/
abstract getName(): string;
}