mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
add support for new error type openApiErr.
This commit is contained in:
12
lib/error.js
Normal file
12
lib/error.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* constructor openApiErr
|
||||
* @constructor
|
||||
* @param {*} message errorMessage
|
||||
*/
|
||||
function openApiErr(message) {
|
||||
this.message = message || '';
|
||||
}
|
||||
|
||||
openApiErr.prototype = Error();
|
||||
|
||||
module.exports = openApiErr;
|
||||
Reference in New Issue
Block a user