2017-02-06 13:40:28 -05:00
|
|
|
// Classes
|
2018-08-15 08:47:45 -04:00
|
|
|
export class PreviewServerError extends Error {
|
2017-02-06 13:40:28 -05:00
|
|
|
// Constructor
|
|
|
|
constructor(public status: number = 500, message?: string) {
|
|
|
|
super(message);
|
2018-08-15 08:47:45 -04:00
|
|
|
Object.setPrototypeOf(this, PreviewServerError.prototype);
|
2017-02-06 13:40:28 -05:00
|
|
|
}
|
|
|
|
}
|