Skip to content

Commit

Permalink
feat: Add default value for NotImplementedException (#139)
Browse files Browse the repository at this point in the history
* feat: Add default value for NotImplementedException

* Update http-exceptions.ts

* Update http-exceptions.ts
  • Loading branch information
razor-x authored Feb 9, 2024
1 parent 83fab32 commit 795b7cb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export class NotFoundException extends HttpException {

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

0 comments on commit 795b7cb

Please sign in to comment.