Package Torello.Browser
Class RDPError
- java.lang.Object
-
- Torello.Browser.RDPError
-
public final class RDPError extends java.lang.Object
RDPError represents a fatal or protocol-level error encountered while communicating with a Chrome Debugging Protocol WebSocket.
This class also defines several standard error-handling behaviors (as static constants or factories) that may be passed to theWebSocketSender
constructor as aConsumer<RDPError>
.
Hi-Lited Source-Code:- View Here: Torello/Browser/RDPError.java
- Open New Browser-Tab: Torello/Browser/RDPError.java
File Size: 4,922 Bytes Line Count: 135 '\n' Characters Found
-
-
Field Summary
Fields Modifier and Type Field Description Throwable
cause
JsonObject
context
static Consumer<RDPError>
EXIT_ON_ERROR
String
message
static Consumer<RDPError>
NO_OP
static Consumer<RDPError>
THROW_INTERNAL_ERROR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Script Returns String
toString()
-
-
-
Field Detail
-
message
public final java.lang.String message
- Code:
- Exact Field Declaration Expression:
public final String message;
-
cause
public final java.lang.Throwable cause
- Code:
- Exact Field Declaration Expression:
public final Throwable cause;
-
context
public final JsonObject context
- Code:
- Exact Field Declaration Expression:
public final JsonObject context;
-
EXIT_ON_ERROR
public static final java.util.function.Consumer<RDPError> EXIT_ON_ERROR
- Code:
- Exact Field Declaration Expression:
public static final Consumer<RDPError> EXIT_ON_ERROR = (RDPError error) -> { System.exit(1); };
-
THROW_INTERNAL_ERROR
public static final java.util.function.Consumer<RDPError> THROW_INTERNAL_ERROR
- Code:
- Exact Field Declaration Expression:
public static final Consumer<RDPError> THROW_INTERNAL_ERROR = (RDPError error) -> { throw new InternalError ("[RDPError.THROW_INTERNAL_ERROR] " + error.message, error.cause); };
-
NO_OP
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-