SipErrorCode.java revision d231aa880ab006d51ffe03454c1fc082f1c97bb8
1/* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package android.net.sip; 18 19/** 20 * Defines error code returned in 21 * {@link SipRegistrationListener#onRegistrationFailed(String, String, String)}, 22 * {@link ISipSessionListener#onError(ISipSession, String, String)}, 23 * {@link ISipSessionListener#onCallChangeFailed(ISipSession, String, String)} and 24 * {@link ISipSessionListener#onRegistrationFailed(ISipSession, String, String)}. 25 * @hide 26 */ 27public enum SipErrorCode { 28 /** When some socket error occurs. */ 29 SOCKET_ERROR, 30 31 /** When server responds with an error. */ 32 SERVER_ERROR, 33 34 /** When transaction is terminated unexpectedly. */ 35 TRANSACTION_TERMINTED, 36 37 /** When some error occurs on the device, possibly due to a bug. */ 38 CLIENT_ERROR, 39 40 /** When the transaction gets timed out. */ 41 TIME_OUT, 42 43 /** When the remote URI is not valid. */ 44 INVALID_REMOTE_URI, 45 46 /** When invalid credentials are provided. */ 47 INVALID_CREDENTIALS, 48 49 /** The client is in a transaction and cannot initiate a new one. */ 50 IN_PROGRESS, 51 52 /** When data connection is lost. */ 53 DATA_CONNECTION_LOST; 54} 55