fix linphonecoreexception

This commit is contained in:
Jehan Monnier 2010-05-14 16:49:54 +02:00
parent 2044497521
commit d770e13391
2 changed files with 4 additions and 2 deletions

View file

@ -130,8 +130,9 @@ public interface LinphoneCore {
* {@link LinphoneCoreListener#inviteReceived(LinphoneCore, String)} listener.
* The application can later respond positively to the call using
* this method.
* @throws LinphoneCoreException
*/
public void acceptCall();
public void acceptCall() throws LinphoneCoreException;
/**

View file

@ -30,6 +30,7 @@ public class LinphoneCoreException extends Exception {
}
public LinphoneCoreException(Throwable e) {
this(e.getClass().getName()+" "+ e.getMessage());
mE = e;
}
@ -40,7 +41,7 @@ public class LinphoneCoreException extends Exception {
public void printStackTrace() {
super.printStackTrace();
mE.printStackTrace();
if (mE!=null) mE.printStackTrace();
}