public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static BError |
getPathError(String reason,
String details)
Returns error record for input reason and details.
|
static BError |
getPathError(String reason,
Throwable error)
Returns error record for input reason.
|
public static BError getPathError(String reason, Throwable error)
reason - Reason for creating the error object. If the reason is null, "UNKNOWN" sets by
default.error - Java throwable object to capture description of error struct. If throwable object is null,
"Unknown Error" sets to message by default.public static BError getPathError(String reason, String details)
reason - Reason for creating the error object. If the reason is null, value "UNKNOWN" is set by
default.details - Java throwable object to capture description of error struct. If throwable object is null,
"Unknown Error" is set to message by default.Copyright © 2019 WSO2. All rights reserved.