blob: 67807266317743208365fd33e46b932ce2fe5db6 [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements; and to You under the Apache License, Version 2.0.
'use strict'
module.exports = function OpenWhiskError (message, error, statusCode) {
Error.captureStackTrace(this, this.constructor)
this.name = this.constructor.name
this.message = message
this.error = error
this.statusCode = statusCode
}
require('util').inherits(module.exports, Error)