UNPKG
bean-validator
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
A http request validation
bean-validator
/
example
/
dto
/
ErrorResponseDTO.js
10 lines
(9 loc)
•
292 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
class
ErrorResponseDTO
{
constructor
(apiPath, errorCode, errorMessage) {
this
.apiPath = apiPath;
this
.errorCode = errorCode;
this
.errorMessage = errorMessage;
this
.errorTime = new Date().toISOString(); } } module.exports = {ErrorResponseDTO};