Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-155
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-155
2021-155
Commits
d389a8c5
Commit
d389a8c5
authored
Jul 04, 2021
by
Kamal Thennakoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
ae19580c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
portfolio-backend/.gitignore
portfolio-backend/.gitignore
+3
-0
portfolio-backend/models/http-error.js
portfolio-backend/models/http-error.js
+8
-0
No files found.
portfolio-backend/.gitignore
0 → 100644
View file @
d389a8c5
node_modules/
.vscode
.env
\ No newline at end of file
portfolio-backend/models/http-error.js
0 → 100644
View file @
d389a8c5
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment