kotauchisunsun/ts-express

View on GitHub
src/repository/user/UserNotFoundError.ts

Summary

Maintainability
A
2 hrs
Test Coverage
B
83%
export class UserNotFoundError implements Error {
  public name: string;
  public message: string;
  constructor() {
    this.name = "UserNotFoundError";
    this.message = "User is not Found.";
  }
  public toString(): string {
    return `${this.name}:${this.message}`;
  }
}