Skip to content

Commit

Permalink
feat: Add default value for NotImplementedException
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Feb 9, 2024
1 parent 83fab32 commit fa9cce7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ export class NotFoundException extends HttpException {

export class NotImplementedException extends HttpException {
constructor(
public metadata: HttpExceptionMetadata,
options?: ThrowingOptions
public metadata: HttpExceptionMetadata = {
type: "not_implemented",
message: "Not implemented",
},
options?: ThrowingOptions,
) {
super(501, metadata, options)
super(501, metadata, options);
}
}


export class MethodNotAllowedException extends HttpException {
constructor(
public metadata: HttpExceptionMetadata,
Expand Down

0 comments on commit fa9cce7

Please sign in to comment.