DTP Base provides a scalable and secure Node.js application development harness ready for production service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
347 B

// site-error.js
// Copyright (C) 2022,2024 DTP Technologies, LLC
// All Rights Reserved
'use strict';
export class SiteError extends Error {
constructor (statusCode, message, options) {
super(message, options);
this.name = 'SiteError';
if (!this.code) {
this.code = statusCode;
}
this.statusCode = statusCode;
}
}