- Documentation
Torch Object Storage
SDK Reference
Android
Exception Handling
Exception Handling (Android SDK)
Exception Handling
Exception Handling (Android SDK)
Exception Handling (Android SDK)
Requests are sent to the TOS server via the TOS Android SDK interface. The response to each request includes a return code, which identifies the status of the current operation. TOS services comply with the HTTP specification.
TOS Server-Side Error
SDK Custom Exceptions and Errors
Catch TosException and retrieve the error code (Code), HTTP status code (StatusCode), and other relevant information. The following is a sample code.
} catch(TosException e){
Log.e("TosException", e.getCode());
Log.e("TosException", e.getStatusCode());
Log.e("TosException", e.toString());
} catch(TosServerException e){
Log.e("TosException", e.getCode());
Log.e("TosException", e.getStatusCode());
} catch(TosClientException e){
Log.e("TosException", e.toString())
} catch(TosException e) {
Log.e("TosException", e.toString())
Last updated: 2025.09.25 14:23:26