public class CommandProcessorResponse extends Object
CommandProcessor
interface. Typically errorMessage
and SQLState
will only be set if the responseCode
is not 0. Note that often responseCode
ends up the exit value of
command shell process so should keep it to < 127.Constructor and Description |
---|
CommandProcessorResponse(int responseCode) |
CommandProcessorResponse(int responseCode,
ErrorMsg canonicalErrMsg,
Throwable t,
String... msgArgs) |
CommandProcessorResponse(int responseCode,
List<String> consoleMessages) |
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,
Schema schema,
Throwable exception,
int hiveErrorCode,
List<String> consoleMessages) |
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.
|
List<String> |
getConsoleMessages() |
int |
getErrorCode() |
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, List<String> consoleMessages)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, Throwable exception)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, Schema schema)
public CommandProcessorResponse(int responseCode, ErrorMsg canonicalErrMsg, Throwable t, String... msgArgs)
public CommandProcessorResponse(int responseCode, String errorMessage, String SQLState, Schema schema, Throwable exception)
public static CommandProcessorResponse create(Exception e)
e
- public int getResponseCode()
public String getErrorMessage()
public String getSQLState()
public Schema getSchema()
public Throwable getException()
public int getErrorCode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.