Modifier and Type | Method and Description |
---|---|
static Response |
failure(SessionId sessionId,
Throwable reason)
Creates a response object for a failed command execution.
|
static Response |
failure(SessionId sessionId,
Throwable reason,
com.google.common.base.Optional<String> screenshot)
Creates a response object for a failed command execution.
|
static Response |
success(SessionId sessionId,
Object value)
Creates a response object for a successful command execution.
|
public static Response success(SessionId sessionId, Object value)
sessionId
- ID of the session that executed the command.value
- the command result value.public static Response failure(SessionId sessionId, Throwable reason)
sessionId
- ID of the session that executed the command.reason
- the failure reason.public static Response failure(SessionId sessionId, Throwable reason, com.google.common.base.Optional<String> screenshot)
sessionId
- ID of the session that executed the command.reason
- the failure reason.screenshot
- a base64 png screenshot to include with the failure.Copyright © 2014. All rights reserved.