Skip to main content
Version: SDK-5.9.6

IsMaintenanceError

public bool IsMaintenanceError();

Description

When the server is under maintenance, 'true' is returned.

The included error cases are as follows:

  • When the project status in BACKND Console is 'Maintenance'
    statusCode : 401
    errorCode : BadUnauthorizedException
    message : bad bad,serverStatus:,maintenance,,Invalid serverStatus:,maintenance, Invalid bad,serverStatus:,maintenance,,Invalid serverStatus:,maintenance

  • When the project status in BACKND Console is 'Maintenance' upon logging in
    statusCode : 401
    errorCode : BadUnauthorizedException
    message : bad serverStatus: maintenance, Invalid serverStatus: maintenance

When a request is sent while the network is temporarily disconnected or unstable, the error may occur. The issue is likely to be resolved when the call is made once again.

Example

BackendReturnObject bro = Backend.GameData.Get("tableName", new Where());

if(bro.IsSuccess())
{
}
else
{
if(bro.IsMaintenanceError())
{
Debug.Log("When the server is under maintenance.");
}
}