public class BuiltInUtils extends Object
Modifier and Type | Method and Description |
---|---|
static BError |
createConversionError(Context context,
String errMsg,
String reason)
Get builtin conversion error.
|
static BError |
createError(Context context,
String errMsg,
String reason)
Get builtin conversion error.
|
static BError |
createStringError(Context context,
String errMsg)
Get builtin string error.
|
static BValue |
getSystemProperty(String key)
Returns the system property which corresponds to the given key.
|
public static BValue getSystemProperty(String key)
key
- system property keyBValue
or BTypes.typeString.getZeroValue()
if the property does not
exist.public static BError createConversionError(Context context, String errMsg, String reason)
context
- Represent ballerina contexterrMsg
- Error description (detail)reason
- Error reasonpublic static BError createStringError(Context context, String errMsg)
context
- Represent ballerina contexterrMsg
- Error descriptionCopyright © 2019 WSO2. All rights reserved.