123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354module juptune.core.util.result;
@(mustuse)
struct Result
{
/++ ALIASES ++/
///
alias __xdtor = __MARMOS_BUG__;
/++ FUNCTIONS ++/
///
void changeErrorType(T)(T errorCode);
///
bool isError(T)(T value);
///
bool isError();
///
bool isErrorType(T)();
///
Result make(T, string FILE = __FILE__, string MODULE = __MODULE__, string FUNCTION = __PRETTY_FUNCTION__, ulong LINE = __LINE__)(T errorCode, string error = null, String context = String.init);
///
static Result noError();
///
void opAssign(T)(T other);
///
bool opCast(T)();
///
bool opEquals()(Result other);
///
void toString(OutputRange)(OutputRange range);
///
Result wrapError(string newError);
/++ VARIABLES ++/
///
String context;
///
string error;
///
int errorCode;
///
TypeInfo_Enum errorType;
///
string file;
///
string function_;
///
ulong line;
///
string module_;
}
| Name | Description |
|---|---|
| __xdtor |
| Name | Description |
|---|---|
| changeErrorType | |
| isError | |
| isError | |
| isErrorType | |
| make | |
| noError | |
| opAssign | |
| opCast | |
| opEquals | |
| toString | |
| wrapError |
| Name | Description |
|---|---|
| context | |
| error | |
| errorCode | |
| errorType | |
| file | |
| function_ | |
| line | |
| module_ |