mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
15 lines
291 B
JavaScript
15 lines
291 B
JavaScript
/**
|
|
* constructor openApiErr
|
|
* @constructor
|
|
* @param {*} message errorMessage
|
|
* @param {*} data extended error information
|
|
*/
|
|
function openApiErr(message, data) {
|
|
this.message = message || '';
|
|
this.data = data || {};
|
|
}
|
|
|
|
openApiErr.prototype = Error();
|
|
|
|
module.exports = openApiErr;
|