ErrorResponse
public class ErrorResponse extends Object
Utility class to manage error response.
Initializer
public init(code: Int, msg: String)
- Creates an object of ErrorResponse class.
| Parameters | |
|---|---|
| code | Int: The error code. |
| msg | String: The message associated with the error code. |
public init(code: Int, msg: String, responseObj: [String: Any])
- Creates an object of ErrorResponse class.
| Parameters | |
|---|---|
| code | Int: The error code. |
| msg | String: The message associated with error code. |
| responseObj | String: The cause of error |