Commit d389a8c5 authored by Kamal Thennakoon's avatar Kamal Thennakoon

minor changes

parent ae19580c
node_modules/
.vscode
.env
\ No newline at end of file
class HttpError extends Error{
constructor(message,errorCode){
super(message);//add a msg property
this.code=errorCode;//adds a code property
}
}
module.exports=HttpError;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment