private void DoLoadErrorCallback(string message, string systemId, LoadErrorType type = LoadErrorType.Unknown) { if (OnLoadError != null) { OnLoadError(this, new RomErrorArgs(message, systemId, type)); } }
public LoadError(LoadErrorType type, string config, string record, string field, object extra) { Type = type; Config = config; Record = record; Field = field; Extra = extra; }
private void DoLoadErrorCallback(string message, string systemId, string path, bool det, LoadErrorType type = LoadErrorType.Unknown) { OnLoadError?.Invoke(this, new RomErrorArgs(message, systemId, path, det, type)); }
public RomErrorArgs(string message, string systemId, string path, bool?det, LoadErrorType type) : this(message, systemId, type) { Deterministic = det; RomPath = path; }
// TODO: think about naming here, what to pass, a lot of potential good information about what went wrong could go here! public RomErrorArgs(string message, string systemId, LoadErrorType type) { Message = message; AttemptedCoreLoad = systemId; Type = type; }
public LoadException(LoadErrorType errorType, Loader loader, string message, Exception inner) : base(message, inner) { m_errorType = errorType; m_loader = loader; }
public LoadException(LoadErrorType errorType, Loader loader) { m_errorType = errorType; m_loader = loader; }