-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/baseExceptions' of https://github.com/tnramalho…
…/rockets into tnramalho-feature/baseExceptions
- Loading branch information
Showing
148 changed files
with
1,348 additions
and
483 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-decode.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-email-not-verified.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/nestjs-auth-apple/src/exceptions/auth-apple-exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
RuntimeException, | ||
RuntimeExceptionOptions, | ||
} from '@concepta/nestjs-exception'; | ||
/** | ||
* Generic auth local exception. | ||
*/ | ||
export class AuthAppleException extends RuntimeException { | ||
constructor(options?: RuntimeExceptionOptions) { | ||
super(options); | ||
this.errorCode = 'AUTH_APPLE_ERROR'; | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-invalid-audience.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-invalid-issuer.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-missing-email.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-missing-id.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-public-key.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-apple/src/exceptions/auth-apple-token-expired.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-github/src/exceptions/auth-github-missing-email.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-github/src/exceptions/auth-github-missing-id.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/nestjs-auth-github/src/exceptions/auth-github.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
RuntimeException, | ||
RuntimeExceptionOptions, | ||
} from '@concepta/nestjs-exception'; | ||
/** | ||
* Generic auth github exception. | ||
*/ | ||
export class AuthGithubException extends RuntimeException { | ||
constructor(options?: RuntimeExceptionOptions) { | ||
super(options); | ||
this.errorCode = 'AUTH_GITHUB_ERROR'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-google/src/exceptions/auth-google-missing-email.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-google/src/exceptions/auth-google-missing-id.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/nestjs-auth-google/src/exceptions/auth-google.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
RuntimeException, | ||
RuntimeExceptionOptions, | ||
} from '@concepta/nestjs-exception'; | ||
/** | ||
* Generic auth google exception. | ||
*/ | ||
export class AuthGoogleException extends RuntimeException { | ||
constructor(options?: RuntimeExceptionOptions) { | ||
super(options); | ||
this.errorCode = 'AUTH_GOOGLE_ERROR'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/nestjs-auth-jwt/src/exceptions/auth-jwt-unauthorized.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { RuntimeExceptionOptions } from '@concepta/nestjs-exception'; | ||
import { AuthJwtException } from './auth-jwt.exception'; | ||
|
||
export class AuthJwtUnauthorizedException extends AuthJwtException { | ||
constructor(options?: RuntimeExceptionOptions) { | ||
super({ | ||
safeMessage: 'Unable to authenticate user with provided JWT token.', | ||
...options, | ||
}); | ||
|
||
this.errorCode = 'AUTH_JWT_UNAUTHORIZED_ERROR'; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/nestjs-auth-jwt/src/exceptions/auth-jwt.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
RuntimeException, | ||
RuntimeExceptionOptions, | ||
} from '@concepta/nestjs-exception'; | ||
/** | ||
* Generic auth jwt exception. | ||
*/ | ||
export class AuthJwtException extends RuntimeException { | ||
constructor(options?: RuntimeExceptionOptions) { | ||
super(options); | ||
this.errorCode = 'AUTH_JWT_ERROR'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/nestjs-auth-local/src/exceptions/auth-local-invalid-login-data.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.