public enum SpawnError extends java.lang.Enum<SpawnError>
WebDriverHandler.handleStartClientRequest(org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean, com.goldencode.p2j.main.WebDriverType).| Modifier and Type | Field and Description |
|---|---|
private int |
code
Error message code.
|
private java.lang.String |
msg
Error message.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<SpawnError> |
get(int code)
Returns the error matching the provided code.
|
int |
getCode()
Getter for
code. |
java.lang.String |
getMsg()
Getter for
msg. |
static java.lang.String |
getSpawnMsgOrDefault(int code)
Returns the error message corresponding to the provided code or the default spawn error message.
|
boolean |
isInvalidOsCredentials()
Returns if the exit code implies invalid OS credentials.
|
java.lang.String |
toString()
Returns the string representation of the error.
|
static SpawnError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpawnError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpawnError UNIX_INVALID_CRED_1
public static final SpawnError UNIX_INVALID_CRED_2
public static final SpawnError UNIX_ROOT_NOT_ALLOWED
public static final SpawnError UNIX_PAM_FAILED
public static final SpawnError UNIX_SPAWNER_NO_PERM
public static final SpawnError WIN_INVALID_CRED
public static final SpawnError WIN_CANT_CREATE_ENV
public static final SpawnError WIN_CANT_GET_PROFILE
public static final SpawnError WIN_CANT_SET_DIR
public static final SpawnError WIN_CANT_CREATE_PROC
public static final SpawnError WIN_CANT_LOAD_LIBS
public static final SpawnError DEFAULT_SPAWN_ERR
public static final SpawnError NO_AVAILABLE_PORTS_ERR_CODE
public static final SpawnError CAN_NOT_SPAWN_REMOTE_ERR_CODE
public static final SpawnError GENERIC
private int code
private java.lang.String msg
public static SpawnError[] values()
for (SpawnError c : SpawnError.values()) System.out.println(c);
public static SpawnError valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()
code.public java.lang.String getMsg()
msg.public java.lang.String toString()
toString in class java.lang.Enum<SpawnError>public static java.util.Optional<SpawnError> get(int code)
code - The code to look for.public boolean isInvalidOsCredentials()
true if the exit code implies invalid credentials, false otherwise.public static java.lang.String getSpawnMsgOrDefault(int code)
code - Exit code.