Skip to content
Snippets Groups Projects
errorService.js 234 B
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    function createError(message, reason, innerStack = null, status = null) {
      const error = new Error(message)
      error.reason = reason
      error.innerStack = innerStack
      error.status = status
      return error
    }
    
    export default createError