EndemolShineGroup/acl

View on GitHub
src/Errors/AbstractError.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { BaseError } from 'make-error';

export default abstract class AbstractError extends BaseError {
  toObject = () => {
    return {
      message: this.message,
      name: this.name,
      stack: this.stack,
    };
  };
}