projeto-hit/backend/src/errors/AppError.ts

13 lines
237 B
TypeScript
Raw Normal View History

class AppError {
public readonly message: string;
public readonly statusCode: number;
constructor(message: string, statusCode = 400) {
this.message = message;
this.statusCode = statusCode;
}
}
export default AppError;