Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/net/sip/SipErrorCode#constants) \| [Methods](https://developer.android.com/reference/android/net/sip/SipErrorCode#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/net/sip/SipErrorCode#inhmethods)

# SipErrorCode

*** ** * ** ***

` public class SipErrorCode `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.net.sip.SipErrorCode |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 31.**   
`https://developer.android.com/reference/android/net/sip/SipManager` and associated classes are no longer supported and should not be used as the basis of future VOIP apps.

Defines error codes returned during SIP actions. For example, during `https://developer.android.com/reference/android/net/sip/SipRegistrationListener#onRegistrationFailed(java.lang.String,%20int,%20java.lang.String)`, `https://developer.android.com/reference/android/net/sip/SipSession.Listener#onError(android.net.sip.SipSession,%20int,%20java.lang.String)`, `https://developer.android.com/reference/android/net/sip/SipSession.Listener#onCallChangeFailed(android.net.sip.SipSession,%20int,%20java.lang.String)` and `https://developer.android.com/reference/android/net/sip/SipSession.Listener#onRegistrationFailed(android.net.sip.SipSession,%20int,%20java.lang.String)`.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#CLIENT_ERROR` When some error occurs on the device, possibly due to a bug. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#CROSS_DOMAIN_AUTHENTICATION` Cross-domain authentication required. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#DATA_CONNECTION_LOST` When data connection is lost. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#INVALID_CREDENTIALS` When invalid credentials are provided. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#INVALID_REMOTE_URI` When the remote URI is not valid. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#IN_PROGRESS` The client is in a transaction and cannot initiate a new one. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#NO_ERROR` Not an error. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#PEER_NOT_REACHABLE` When the peer is not reachable. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#SERVER_ERROR` When server responds with an error. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#SERVER_UNREACHABLE` When the server is not reachable. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#SOCKET_ERROR` When some socket error occurs. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#TIME_OUT` When the transaction gets timed out. |
| `int` | `https://developer.android.com/reference/android/net/sip/SipErrorCode#TRANSACTION_TERMINTED` When transaction is terminated unexpectedly. |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/net/sip/SipErrorCode#toString(int)(int errorCode) ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### CLIENT_ERROR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CLIENT_ERROR
```

When some error occurs on the device, possibly due to a bug.

<br />

Constant Value: -4 (0xfffffffc)

### CROSS_DOMAIN_AUTHENTICATION

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CROSS_DOMAIN_AUTHENTICATION
```

Cross-domain authentication required.

<br />

Constant Value: -11 (0xfffffff5)

### DATA_CONNECTION_LOST

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int DATA_CONNECTION_LOST
```

When data connection is lost.

<br />

Constant Value: -10 (0xfffffff6)

### INVALID_CREDENTIALS

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int INVALID_CREDENTIALS
```

When invalid credentials are provided.

<br />

Constant Value: -8 (0xfffffff8)

### INVALID_REMOTE_URI

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int INVALID_REMOTE_URI
```

When the remote URI is not valid.

<br />

Constant Value: -6 (0xfffffffa)

### IN_PROGRESS

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IN_PROGRESS
```

The client is in a transaction and cannot initiate a new one.

<br />

Constant Value: -9 (0xfffffff7)

### NO_ERROR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NO_ERROR
```

Not an error.

<br />

Constant Value: 0 (0x00000000)

### PEER_NOT_REACHABLE

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PEER_NOT_REACHABLE
```

When the peer is not reachable.

<br />

Constant Value: -7 (0xfffffff9)

### SERVER_ERROR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SERVER_ERROR
```

When server responds with an error.

<br />

Constant Value: -2 (0xfffffffe)

### SERVER_UNREACHABLE

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SERVER_UNREACHABLE
```

When the server is not reachable.

<br />

Constant Value: -12 (0xfffffff4)

### SOCKET_ERROR

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int SOCKET_ERROR
```

When some socket error occurs.

<br />

Constant Value: -1 (0xffffffff)

### TIME_OUT

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIME_OUT
```

When the transaction gets timed out.

<br />

Constant Value: -5 (0xfffffffb)

### TRANSACTION_TERMINTED

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TRANSACTION_TERMINTED
```

When transaction is terminated unexpectedly.

<br />

Constant Value: -3 (0xfffffffd)

## Public methods

### toString

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static String toString (int errorCode)
```

<br />

<br />

| Parameters ||
|---|---|
| `errorCode` | `int` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |