forked from oracle-actions/setup-testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestPilotException.java
More file actions
60 lines (55 loc) · 2.48 KB
/
Copy pathTestPilotException.java
File metadata and controls
60 lines (55 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
** Oracle Test Pilot
**
** Copyright (c) 2025-2026 Oracle
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
*/
package com.oracle.testpilot.exception;
/**
* @author LLEFEVRE
* @since 1.0.0
*/
public class TestPilotException extends RuntimeException {
public static final int UNKNOWN_COMMAND_LINE_ARGUMENT = 1;
public static final int WRONG_OCI_SERVICE_PARAMETER = 2;
public static final int CREATE_DATABASE_WRONG_USER_NAME_LENGTH = 3;
public static final int WRONG_MAIN_CONTROLLER_URI = 4;
public static final int CREATE_DATABASE_REST_ENDPOINT_ISSUE = 5;
public static final int CREATE_DATABASE_WRONG_USER_NAME = 6;
public static final int WRONG_MAIN_CONTROLLER_REST_CALL = 7;
public static final int RETRIEVE_OAUTH2_TOKEN = 8;
public static final int TOO_MANY_USERS_PROVIDED = 9;
public static final int CREATE_DATABASE_MISSING_USER_NAME = 10;
public static final int CONNECTION_STRING_FORMAT_MISSING_PARAMETER = 11;
public static final int CREATE_DATABASE_MISSING_DB_TYPE = 12;
public static final int SKIP_TESTING_MISSING_OWNER = 13;
public static final int SKIP_TESTING_MISSING_REPOSITORY = 14;
public static final int SKIP_TESTING_MISSING_PREFIX_LIST = 16;
public static final int SKIP_TESTING_WRONG_URI = 17;
public static final int SKIP_TESTING_WRONG_REST_CALL = 18;
public static final int SKIP_TESTING_REST_ENDPOINT_ISSUE = 19;
public static final int USER_MISSING_PARAMETER = 20;
public static final int USER_PARAMETER_TOO_LONG = 21;
public static final int OCI_SERVICE_MISSING_PARAMETER = 22;
public static final int PREFIX_LIST_MISSING_PARAMETER = 23;
public static final int OWNER_MISSING_PARAMETER = 24;
public static final int REPOSITORY_MISSING_PARAMETER = 25;
public static final int PULL_REQUEST_NUMBER_MISSING_PARAMETER = 27;
public static final int SKIP_TESTING_MISSING_PULL_REQUEST_NUMBER = 28;
public static final int DROP_DATABASE_WRONG_USER_NAME_LENGTH = 30;
public static final int DROP_DATABASE_WRONG_USER_NAME = 31;
public static final int DROP_DATABASE_MISSING_USER_NAME = 32;
public static final int DROP_DATABASE_MISSING_DB_TYPE = 33;
public static final int DROP_DATABASE_REST_ENDPOINT_ISSUE = 34;
private final int errorCode;
public TestPilotException(final int errorCode, final Throwable cause) {
super(String.valueOf(errorCode), cause);
this.errorCode = errorCode;
}
public TestPilotException(final int errorCode) {
this(errorCode, null);
}
public int getErrorCode() {
return errorCode;
}
}