mares ddd 패턴시 구현할 error 인터페이스
npm install mares-errornpm install --save mares-errorjavascript
const MaresError = require('mares-error')
class MaresCustomError extends MaresError {
constructor(error) {
super(error)
}
convert() {
//todo error handling
}
}
`ETC
환경변수에 ERROR_LOGABLE=true` 로 설정하면 not found 에러를 포함하여 모든 에러를 출력해 줍니다.