Skip to content

Commit

Permalink
SwaggerException extends Error (TS), #771
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Aug 22, 2017
1 parent b7409b3 commit 982e6f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public virtual string TransformText()

#line default
#line hidden
this.Write(@"export class SwaggerException {
this.Write(@"export class SwaggerException extends Error {
message: string;
status: number;
response: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface FileResponse {

<#}#>
<#if(Model.RequiresSwaggerExceptionClass){#>
export class SwaggerException {
export class SwaggerException extends Error {
message: string;
status: number;
response: string;
Expand Down

0 comments on commit 982e6f4

Please sign in to comment.