public class JsonMetaDataFormatter extends Object implements MetaDataFormatter
Constructor and Description |
---|
JsonMetaDataFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
error(OutputStream out,
String msg,
int errorCode,
String sqlState)
Write an error message.
|
void |
error(OutputStream out,
String errorMessage,
int errorCode,
String sqlState,
String errorDetail) |
void |
showErrors(DataOutputStream out,
WMValidateResourcePlanResponse response) |
public void error(OutputStream out, String msg, int errorCode, String sqlState) throws HiveException
error
in interface MetaDataFormatter
sqlState
- if null
, will be ignoredHiveException
public void error(OutputStream out, String errorMessage, int errorCode, String sqlState, String errorDetail) throws HiveException
error
in interface MetaDataFormatter
sqlState
- if null
, will be skipped in outputerrorDetail
- usually string version of some Exception, if null
, will be ignoredHiveException
public void showErrors(DataOutputStream out, WMValidateResourcePlanResponse response) throws HiveException
showErrors
in interface MetaDataFormatter
HiveException
Copyright © 2022 The Apache Software Foundation. All rights reserved.