Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineError.h |
Include |
#include "OnlineError.h" |
struct FOnlineError
Generic Error response for OSS calls
Name | Description | ||
---|---|---|---|
|
bSucceeded |
Did the request succeed fully. If this is true the rest of the struct probably doesn't matter |
|
|
ErrorCode |
Intended to be interpreted by code. |
|
|
ErrorMessage |
Suitable for display to end user. Guaranteed to be in the current locale (or empty) |
|
|
ErrorRaw |
The raw unparsed error message from server. |
|
|
Result |
If successful result then the rest of the struct probably doesn't matter |
Name | Description | |
---|---|---|
|
FOnlineError ( |
|
|
FOnlineError ( |
Generic Error response for OSS calls |
|
FOnlineError ( |
|
|
FOnlineError ( |
|
|
FOnlineError ( |
Generic Error response for OSS calls |
|
FOnlineError ( |
Generic Error response for OSS calls |
|
FOnlineError ( |
Generic Error response for OSS calls |
Name | Description | ||
---|---|---|---|
|
CreateError ( |
Create factory for proper namespacing. Use ONLINE_ERROR macro |
|
|
CreateError ( |
Use a default error code / display text |
|
|
DefaultErrorCode ( |
||
|
DefaultErrorMsg ( |
Default messaging for common errors |
|
|
const FStrin... |
GetDefaultErrorNamespace() |
Default namespace for online errors |
|
const FStrin... |
GetErrorCode() |
|
|
GetErrorLegacy() |
Prints out everything, need something like this!!! |
|
|
const FText ... |
GetErrorMessage() |
|
|
const FStrin... |
GetErrorRaw() |
|
|
EOnlineError... |
GetErrorResult() |
Accessors |
|
FOnlineError... |
SetErrorCode ( |
|
|
FOnlineError... |
SetErrorMessage ( |
|
|
FOnlineError... |
SetErrorRaw ( |
Setters for adding the raw error |
|
SetFromErrorCode ( |
||
|
SetFromErrorCode ( |
||
|
SetFromErrorCode ( |
||
|
SetFromErrorCode ( |
||
|
SetFromErrorCode ( |
Helpers for constructing errors |
|
|
SetFromErrorCode ( |
Same as the Ctors but can be called any time (does NOT set bSucceeded to false) |
|
|
SetFromErrorMessage |
||
|
SetFromErrorMessage ( |
||
|
FOnlineError... |
SetResult ( |
Setters for updating individual values directly |
|
const FOnlin... |
Success() |
Helpers for the most common error types |
|
ToLogString() |
Call this if you want to log this out (will pick the best string representation) |
|
|
WasSuccessful() |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
operator+ ( |
||
|
operator+ ( |
||
|
FOnlineError... |
operator+= ( |
|
|
FOnlineError... |
operator+= ( |
|
|
operator== ( |
Name |
Description |
---|---|
GenericErrorCode |
Code useful when all you have is raw error info from old APIs |