Skip to main content
Version: 5.11.2

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

  • When the project status in BACKND Console is 'Maintenance' upon logging in
    statusCode : 401
    errorCode : BadUnauthorizedException

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.");
}
}