# ErrorCallbackArgs

> Object passed to the error callback when the socket enters the [ERROR](https://titaniumsdk.com/docs/sdk/Titanium.Network.Socket.md#ERROR) state.

- Source: https://titaniumsdk.com/docs/sdk/main/ErrorCallbackArgs
- Titanium SDK version: main
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 1.7
- Extends: FailureResponse
- Inheritance: FailureResponse > ErrorResponse

## Properties

### code

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.1.0

Error code. Returns a non-zero value.

If the error was generated by the operating system, that system's error value
is used. Otherwise, this value will be -1.

### socket

- Type: Titanium.Network.Socket.TCP
- Platforms: Android, iPhone, iPad, macOS

Socket that experienced the error.

### success

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.1.0

Indicates if the operation succeeded. Returns `false`.

Returns `false`.

## Inherited members

1 members are inherited. Each is documented on the type that declares it.

- [FailureResponse](https://titaniumsdk.com/docs/sdk/main/FailureResponse.md): `error`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

