File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export enum AskCodebaseErrorCode {
2- /** Success */
3- E0000 = 0 ,
4- /** Unkonwn error */
5- E10001 = 10001 ,
6- /** Access token expired */
7- E10002 = 10002 ,
8- /** API usage limit exceeded */
9- E10003 = 10003 ,
10- /** User is null */
11- E10004 = 10004 ,
12- }
2+ /** Success */
3+ E0000 = 0 ,
4+ /** Unkonwn error */
5+ E10001 = 10001 ,
6+ /** Access token expired */
7+ E10002 = 10002 ,
8+ /** API usage limit exceeded */
9+ E10003 = 10003 ,
10+ /** User is null */
11+ E10004 = 10004 ,
12+ /** Authentication error */
13+ E10005 = 10005 ,
14+ /** State is null */
15+ E10006 = 10006 ,
16+ /** Can't get github user by access token */
17+ E10007 = 10007 ,
18+ /** Can't get google user by access token */
19+ E10008 = 10008 ,
20+ }
Original file line number Diff line number Diff line change 1+ import { AskCodebaseError } from "./AskCodebaseError" ;
2+ import { AskCodebaseErrorCode } from "./AskCodebaseErrorCode" ;
3+
4+ export class ErrorAuthentication extends AskCodebaseError {
5+ public static code = AskCodebaseErrorCode . E10005 ;
6+
7+ constructor ( message : string = "Authentication error." ) {
8+ super ( ErrorAuthentication . code , message ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ import { AskCodebaseError } from "./AskCodebaseError" ;
2+ import { AskCodebaseErrorCode } from "./AskCodebaseErrorCode" ;
3+
4+ export class ErrorGithubUser extends AskCodebaseError {
5+ public static code = AskCodebaseErrorCode . E10007 ;
6+
7+ constructor ( message : string = "Authentication error." ) {
8+ super ( ErrorGithubUser . code , message ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ import { AskCodebaseError } from "./AskCodebaseError" ;
2+ import { AskCodebaseErrorCode } from "./AskCodebaseErrorCode" ;
3+
4+ export class ErrorGoogleUser extends AskCodebaseError {
5+ public static code = AskCodebaseErrorCode . E10008 ;
6+
7+ constructor ( message : string = "Authentication error." ) {
8+ super ( ErrorGoogleUser . code , message ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ import { AskCodebaseError } from "./AskCodebaseError" ;
2+ import { AskCodebaseErrorCode } from "./AskCodebaseErrorCode" ;
3+
4+ export class ErrorStateNull extends AskCodebaseError {
5+ public static code = AskCodebaseErrorCode . E10006 ;
6+
7+ constructor ( message : string = "State is null" ) {
8+ super ( ErrorStateNull . code , message ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change @@ -4,3 +4,7 @@ export * from "./ErrorTokenExpired";
44export * from "./ErrorApiUsageExceeded" ;
55export * from "./ErrorUserNull" ;
66export * from "./ErrorNone" ;
7+ export * from "./ErrorGithubUser" ;
8+ export * from "./ErrorGoogleUser" ;
9+ export * from "./ErrorStateNull" ;
10+ export * from "./ErrorAuthentication" ;
Original file line number Diff line number Diff line change 1+ 2023-07-27T11:21:07.327704Z INFO sui::client_commands: 0xcd0247d0b67e53dde69b285e7a748e3dc390e8a5244eb9dd9c5c53d95e4cf0aa
2+ 2023-07-27T11:22:07.379793Z INFO sui::client_commands: 0xcd0247d0b67e53dde69b285e7a748e3dc390e8a5244eb9dd9c5c53d95e4cf0aa
You can’t perform that action at this time.
0 commit comments