@onboardmobility/exception

Generic exception class

Usage no npm install needed!

<script type="module">
  import onboardmobilityException from 'https://cdn.skypack.dev/@onboardmobility/exception';
</script>

README

@onboardmobility/exception

TODO: description

Usage

const exception = require('@onboardmobility/exception');

throw new exception({
    message: `Error message`,
    internalCode: 'error.internalCode',
    status: 500,
    clientMessage: 'Please check your code',
});