public class BLangExceptionHelper extends Object
Constructor and Description |
---|
BLangExceptionHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
constructSemanticError(NodeLocation nodeLocation,
SemanticErrors semanticError,
Object... params) |
static String |
getErrorMessage(RuntimeErrors runtimeErrors,
Object... params) |
static String |
getErrorMessage(SemanticErrors semanticError,
Object... params) |
static BallerinaException |
getRuntimeException(RuntimeErrors runtimeErrors,
Object... params) |
static SemanticException |
getSemanticError(NodeLocation nodeLocation,
SemanticErrors semanticError,
Object... params) |
static void |
throwSemanticError(Node node,
SemanticErrors semanticError,
Object... params) |
static void |
throwSemanticError(String errorMessage) |
public static void throwSemanticError(String errorMessage)
public static void throwSemanticError(Node node, SemanticErrors semanticError, Object... params)
public static String constructSemanticError(NodeLocation nodeLocation, SemanticErrors semanticError, Object... params)
public static BallerinaException getRuntimeException(RuntimeErrors runtimeErrors, Object... params)
public static SemanticException getSemanticError(NodeLocation nodeLocation, SemanticErrors semanticError, Object... params)
public static String getErrorMessage(RuntimeErrors runtimeErrors, Object... params)
public static String getErrorMessage(SemanticErrors semanticError, Object... params)
Copyright © 2018 WSO2. All rights reserved.