| Modifier and Type | Method and Description |
|---|---|
BStruct |
NativeCallContext.getError() |
BStruct |
Context.getError() |
| Modifier and Type | Method and Description |
|---|---|
void |
BLangCallableUnitCallback.notifyFailure(BStruct error) |
void |
NativeCallContext.setError(BStruct error) |
void |
Context.setError(BStruct error) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,BStruct> |
CallableWorkerResponseContext.workerErrors |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
BLangVMStructs.createBStruct(StructInfo structInfo,
Object... values)
Create BStruct for given StructInfo and BValues.
|
static BStruct |
BLangVMErrors.createCallCancelledException(CallableUnitInfo callableUnitInfo) |
static BStruct |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BStruct> errors) |
static BStruct |
BLangVMErrors.createError(CallableUnitInfo callableUnitInfo,
String message) |
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message)
Create error Struct from given message.
|
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BStruct cause)
Create error Struct from given error message and cause.
|
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
StructInfo errorType,
Object... values)
Create an error Struct from given struct type and message.
|
static BStruct |
BLangVMErrors.createError(Context context,
int ip,
String message) |
static BStruct |
BLangVMErrors.createError(Context context,
String message)
Create error Struct from given error message.
|
static BStruct |
BLangVMErrors.createError(WorkerExecutionContext context,
String message) |
static BStruct |
BLangVMErrors.createIllegalStateException(Context context,
String msg) |
static BStruct |
BLangVMErrors.createNullRefException(CallableUnitInfo callableUnitInfo) |
static BStruct |
BLangVMErrors.createNullRefException(Context context) |
static BStruct |
BLangVMErrors.createNullRefException(WorkerExecutionContext context) |
static BStruct |
BLangVMStructs.createObject(StructInfo structInfo,
BValue... values)
Create ballerina object.
|
static BStruct |
BLangVMErrors.createTypeCastError(WorkerExecutionContext context,
String sourceType,
String targetType) |
static BStruct |
BLangVMErrors.createTypeConversionError(WorkerExecutionContext context,
String errorMessage) |
BStruct |
WorkerExecutionContext.getError() |
BStruct |
StackFrame.getErrorThrown() |
static BStruct |
BLangVMErrors.getStackFrame(CallableUnitInfo callableUnitInfo,
int ip) |
static BStruct |
BLangVMErrors.getStackFrame(WorkerExecutionContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,BStruct> |
CallableWorkerResponseContext.getWorkerErrors() |
| Modifier and Type | Method and Description |
|---|---|
static void |
BLangVMErrors.attachStackFrame(BStruct error,
CallableUnitInfo callableUnitInfo) |
static void |
BLangVMErrors.attachStackFrame(BStruct error,
WorkerExecutionContext context) |
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BStruct cause)
Create error Struct from given error message and cause.
|
protected void |
BaseWorkerResponseContext.doFailCallbackNotify(BStruct error) |
static WorkerExecutionContext |
BLangScheduler.errorThrown(WorkerExecutionContext ctx,
BStruct error) |
static String |
BLangVMErrors.getAggregatedRootErrorMessages(BStruct error) |
static String |
BLangVMErrors.getCasueStackTrace(BStruct error) |
static String |
BLangVMErrors.getPrintableStackTrace(BStruct error) |
void |
BLangScheduler.BLangAsyncCallableUnitCallback.notifyFailure(BStruct error) |
void |
CallableUnitCallback.notifyFailure(BStruct error)
This should be called to notify the listener that your operation
failed with a specific error.
|
protected WorkerExecutionContext |
CallableWorkerResponseContext.onFinalizedError(WorkerExecutionContext targetCtx,
BStruct error) |
protected void |
CallableWorkerResponseContext.printError(BStruct error) |
void |
WorkerExecutionContext.setError(BStruct error) |
void |
StackFrame.setErrorThrown(BStruct errorThrown) |
protected void |
CallableWorkerResponseContext.storeError(WorkerExecutionContext sourceCtx,
BStruct error) |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
BLangVMErrors.createCallFailedException(WorkerExecutionContext context,
Map<String,BStruct> errors) |
| Constructor and Description |
|---|
WorkerExecutionContext(BStruct error) |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
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 BStruct |
BLangConnectorSPIUtil.createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BStruct |
BLangConnectorSPIUtil.createBStruct(ProgramFile programFile,
String pkgPath,
String structName,
Object... values) |
static BStruct |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values) |
static BStruct |
BLangConnectorSPIUtil.createObject(ProgramFile programFile,
String pkgPath,
String structName,
BValue... values) |
static BStruct |
ConnectorUtils.createStruct(Resource resource,
String packageName,
String structName)
Deprecated.
This method is used to create a struct given the resource and required struct details.
|
static BStruct |
BLangConnectorSPIUtil.getPackageEndpoint(ProgramFile programFile,
String pkgName,
String endpointName) |
| Modifier and Type | Method and Description |
|---|---|
static Struct |
BLangConnectorSPIUtil.toStruct(BStruct bStruct)
Wrap BVM struct value to
Struct |
| Modifier and Type | Method and Description |
|---|---|
static StructImpl |
ConnectorSPIModelHelper.createStruct(BStruct struct) |
| Modifier and Type | Method and Description |
|---|---|
BStruct |
DataIterator.generateNext() |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
JSONUtils.convertJSONNodeToStruct(JsonNode jsonNode,
BStructType structType)
Convert a BJSON to a user defined struct.
|
static BStruct |
JSONUtils.convertJSONToStruct(BJSON bjson,
BStructType structType)
Convert a BJSON to a user defined struct.
|
| Modifier and Type | Method and Description |
|---|---|
static BJSON |
JSONUtils.convertStructToJSON(BStruct struct)
|
static BJSON |
JSONUtils.convertStructToJSON(BStruct struct,
BJSONType targetType)
|
| Modifier and Type | Method and Description |
|---|---|
BStruct |
BTable.getNext() |
BStruct |
BStruct.value() |
| Modifier and Type | Method and Description |
|---|---|
void |
BTable.addData(BStruct data) |
void |
BTable.addData(BStruct data,
Context context) |
void |
BTable.performAddOperation(BStruct data,
Context context)
Performs addition of a record to the database.
|
| Constructor and Description |
|---|
BTable(BType type,
BStruct configStruct) |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
TableUtils.createTableOperationError(Context context,
Throwable throwable)
Creates an instance of
{@link BStruct} of the type error. |
BStruct |
TableIterator.generateNext() |
| Modifier and Type | Method and Description |
|---|---|
void |
TableProvider.deleteData(String tableName,
BStruct constrainedType) |
static String |
TableUtils.generateDeleteDataStatment(String tableName,
BStruct constrainedType) |
static String |
TableUtils.generateInsertDataStatment(String tableName,
BStruct constrainedType) |
String |
TableProvider.insertData(String tableName,
BStruct constrainedType) |
static void |
TableUtils.prepareAndExecuteStatement(PreparedStatement stmt,
BStruct constrainedType) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorTableEntry |
ErrorTableEntry.getMatch(PackageInfo packageInfo,
int currentIP,
BStruct error) |
| Modifier and Type | Method and Description |
|---|---|
void |
CallbackObserver.notifyFailure(BStruct error) |
void |
CallableUnitCallbackObserver.notifyFailure(BStruct error) |
| Modifier and Type | Method and Description |
|---|---|
static WorkerExecutionContext |
BLangVMUtils.handleNativeInvocationError(WorkerExecutionContext parentCtx,
BStruct error) |
Copyright © 2018 WSO2. All rights reserved.