New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mares-error

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mares-error

mares ddd 패턴시 구현할 error 인터페이스

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

mares-error

mares ddd 패턴시 구현할 error 인터페이스

Installation

npm install --save mares-error

Examples

아래와 같이 MaresError를 상속받아 생성자 및 convert함수를 구현하여야 합니다.

const MaresError = require('mares-error')
class MaresCustomError extends MaresError {
	constructor(error) {
	    super(error)
	}
	convert() {
	    //todo error handling
	}
}

ETC

환경변수에 ERROR_LOGABLE=true 로 설정하면 not found 에러를 포함하여 모든 에러를 출력해 줍니다.

Keywords

mares

FAQs

Package last updated on 12 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts