Modifier and Type | Method and Description |
---|---|
BMap<?,?> |
Context.getError() |
BMap<?,?> |
NativeCallContext.getError() |
Modifier and Type | Method and Description |
---|---|
void |
BLangCallableUnitCallback.notifyFailure(BMap<String,BValue> error) |
void |
Context.setError(BMap<?,?> error) |
void |
NativeCallContext.setError(BMap<?,?> error) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,BMap<String,BValue>> |
CallableWorkerResponseContext.workerErrors |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
BLangVMStructs.createBStruct(StructureTypeInfo structInfo,
Object... values)
Create BStruct for given StructInfo and BValues.
|
static BMap<String,BValue> |
BLangVMErrors.createCallCancelledException(WorkerExecutionContext context) |
static BMap<String,BValue> |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BMap<String,BValue>> errors) |
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message)
Create error Struct from given message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BMap<String,BValue> cause)
Create error Struct from given error message and cause.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
StructureTypeInfo errorType,
Object... values)
Create an error Struct from given struct type and message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
String message)
Create error Struct from given error message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(WorkerExecutionContext context,
String message) |
static BMap<String,BValue> |
BLangVMErrors.createIllegalStateException(Context context,
String msg) |
static BMap<String,BValue> |
BLangVMErrors.createNullRefException(Context context) |
static BMap<String,BValue> |
BLangVMErrors.createNullRefException(WorkerExecutionContext context) |
static BMap<String,BValue> |
BLangVMStructs.createObject(ObjectTypeInfo objectInfo,
BValue... values)
This is a helper method to create a object in native code.
|
static BMap<String,BValue> |
BLangVMErrors.createTypeCastError(WorkerExecutionContext context,
String sourceType,
String targetType) |
static BMap<String,BValue> |
BLangVMErrors.createTypeConversionError(WorkerExecutionContext context,
String errorMessage) |
BMap<String,BValue> |
WorkerExecutionContext.getError() |
BMap<String,BValue> |
StackFrame.getErrorThrown() |
static BMap<String,BValue> |
BLangVMErrors.getStackFrame(ProgramFile programFile,
CallableUnitInfo callableUnitInfo,
int ip) |
static BMap<String,BValue> |
BLangVMErrors.getStackFrame(WorkerExecutionContext context) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,BMap<String,BValue>> |
CallableWorkerResponseContext.getWorkerErrors() |
Modifier and Type | Method and Description |
---|---|
static void |
BLangVMErrors.attachStackFrame(BMap<String,BValue> error,
WorkerExecutionContext context) |
static void |
BLangVMErrors.attachStackFrame(ProgramFile programFile,
BMap<String,BValue> error,
CallableUnitInfo callableUnitInfo) |
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BMap<String,BValue> cause)
Create error Struct from given error message and cause.
|
protected void |
BaseWorkerResponseContext.doFailCallbackNotify(BMap<String,BValue> error) |
static WorkerExecutionContext |
BLangScheduler.errorThrown(WorkerExecutionContext ctx,
BMap<String,BValue> error) |
static String |
BLangVMErrors.getAggregatedRootErrorMessages(BMap<String,BValue> error) |
static String |
BLangVMErrors.getCasueStackTrace(BMap<String,BValue> error) |
static String |
BLangVMErrors.getPrintableStackTrace(BMap<String,BValue> error) |
void |
BLangScheduler.BLangAsyncCallableUnitCallback.notifyFailure(BMap<String,BValue> error) |
void |
CallableUnitCallback.notifyFailure(BMap<String,BValue> error)
This should be called to notify the listener that your operation
failed with a specific error.
|
protected WorkerExecutionContext |
CallableWorkerResponseContext.onFinalizedError(WorkerExecutionContext targetCtx,
BMap<String,BValue> error) |
protected void |
CallableWorkerResponseContext.printError(BMap<?,?> error) |
void |
WorkerExecutionContext.setError(BMap<String,BValue> error) |
void |
StackFrame.setErrorThrown(BMap<String,BValue> errorThrown) |
protected void |
CallableWorkerResponseContext.storeError(WorkerExecutionContext sourceCtx,
BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BMap<String,BValue>> errors) |
Constructor and Description |
---|
WorkerExecutionContext(BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
ConnectorUtils.createAndGetStruct(Context context,
String packagePath,
String structName)
Deprecated.
This method is used to create a struct given the context and required struct details.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createBStruct(ProgramFile programFile,
String pkgPath,
String structName,
Object... values) |
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values)
This is a helper method to create a object in native code.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(ProgramFile programFile,
String pkgPath,
String objectName,
BValue... values) |
static BMap<String,BValue> |
BLangConnectorSPIUtil.getPackageEndpoint(ProgramFile programFile,
String pkgName,
String version,
String endpointName) |
Modifier and Type | Method and Description |
---|---|
static Struct |
BLangConnectorSPIUtil.toStruct(BMap<String,BValue> bStruct)
Wrap BVM struct value to
Struct . |
Modifier and Type | Method and Description |
---|---|
static BMap |
ConnectorSPIModelHelper.getAnnotationVariable(String pkgPath,
ProgramFile programFile) |
Modifier and Type | Method and Description |
---|---|
static StructImpl |
ConnectorSPIModelHelper.createStruct(BMap<String,BValue> struct) |
Modifier and Type | Method and Description |
---|---|
BMap<?,?> |
DataIterator.generateNext() |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
JSONUtils.convertJSONToStruct(BValue json,
BStructureType structType)
Convert a BJSON to a user defined struct.
|
static BMap<String,?> |
JSONUtils.jsonToBMap(BValue json,
BMapType mapType)
Convert a JSON node to a map.
|
Modifier and Type | Method and Description |
---|---|
static BRefType<?> |
JSONUtils.convertMapToJSON(BMap<String,BValue> map,
BJSONType targetType)
Convert map value to JSON.
|
Modifier and Type | Method and Description |
---|---|
BMap<?,?> |
BXMLSequence.getAttributesMap()
Get attributes as a
BMap . |
abstract BMap<?,?> |
BXML.getAttributesMap()
Get attributes as a
BMap . |
BMap<?,?> |
BXMLItem.getAttributesMap()
Get attributes as a
BMap . |
BMap<String,BValue> |
BTable.getNext() |
BMap |
BXMLAttributes.value() |
Modifier and Type | Method and Description |
---|---|
void |
BTable.addData(BMap<String,BValue> data) |
void |
BTable.addData(BMap<String,BValue> data,
Context context) |
void |
BTable.performAddOperation(BMap<String,BValue> data,
Context context)
Performs addition of a record to the database.
|
void |
BXMLSequence.setAttributes(BMap<String,?> attributes) |
abstract void |
BXML.setAttributes(BMap<String,?> attributes)
Set the attributes of the XML
BMap . |
void |
BXMLItem.setAttributes(BMap<String,?> attributes)
Set the attributes of the XML
BMap . |
Modifier and Type | Method and Description |
---|---|
static BMap<?,?> |
TableUtils.createTableOperationError(Context context,
Throwable throwable)
Creates an instance of
{@link BStruct} of the type error. |
BMap<String,BValue> |
TableIterator.generateNext() |
Modifier and Type | Method and Description |
---|---|
void |
TableProvider.deleteData(String tableName,
BMap<String,BValue> constrainedType) |
static String |
TableUtils.generateDeleteDataStatment(String tableName,
BMap<?,?> constrainedType) |
static String |
TableUtils.generateInsertDataStatment(String tableName,
BMap<?,?> constrainedType) |
String |
TableProvider.insertData(String tableName,
BMap<String,BValue> constrainedType) |
static void |
TableUtils.prepareAndExecuteStatement(PreparedStatement stmt,
BMap<String,BValue> constrainedType) |
Modifier and Type | Method and Description |
---|---|
static ErrorTableEntry |
ErrorTableEntry.getMatch(PackageInfo packageInfo,
int currentIP,
BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
void |
CallbackObserver.notifyFailure(BMap<String,BValue> error) |
void |
CallableUnitCallbackObserver.notifyFailure(BMap<String,BValue> error) |
Modifier and Type | Method and Description |
---|---|
static WorkerExecutionContext |
BLangVMUtils.handleNativeInvocationError(WorkerExecutionContext parentCtx,
BMap<String,BValue> error) |
Copyright © 2018 WSO2. All rights reserved.