angular-cn/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/upload-error.ts

9 lines
214 B
TypeScript

// Classes
export class UploadError extends Error {
// Constructor
constructor(public status: number = 500, message?: string) {
super(message);
Object.setPrototypeOf(this, UploadError.prototype);
}
}