public class CommandProcessorResponse extends Object
CommandProcessor
interface. Typically errorMessage
and SQLState
will only be set if the responseCode
is not 0.Constructor and Description |
---|
CommandProcessorResponse(int responseCode) |
CommandProcessorResponse(int responseCode,
String errorMessage,
String SQLState) |
CommandProcessorResponse(int responseCode,
String errorMessage,
String SQLState,
Schema schema) |
CommandProcessorResponse(int responseCode,
String errorMessage,
String SQLState,
Schema schema,
Throwable exception) |
CommandProcessorResponse(int responseCode,
String errorMessage,
String SQLState,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
static CommandProcessorResponse |
create(Exception e)
Create CommandProcessorResponse object indicating an error.
|
String |
getErrorMessage() |
Throwable |
getException() |
int |
getResponseCode() |
Schema |
getSchema() |
String |
getSQLState() |
String |
toString() |
public CommandProcessorResponse(int responseCode)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, Throwable exception)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, Schema schema)
public static CommandProcessorResponse create(Exception e)
e
- public int getResponseCode()
public String getErrorMessage()
public String getSQLState()
public Schema getSchema()
public Throwable getException()
Copyright © 2017 The Apache Software Foundation. All rights reserved.