sipexception.html

来自「sipapi 说明文档.用于JAVA的SIP开发及应用.」· HTML 代码 · 共 537 行 · 第 1/2 页

HTML
537
字号
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="TRANSPORT_NOT_SUPPORTED"><!-- --></A><H3>
TRANSPORT_NOT_SUPPORTED</H3>
<PRE>
public static final byte <B>TRANSPORT_NOT_SUPPORTED</B></PRE>
<DL>
<DD>The requested transport is not supported
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html" title="interface in javax.microedition.sip"><CODE>SipConnection</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.TRANSPORT_NOT_SUPPORTED">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIALOG_UNAVAILABLE"><!-- --></A><H3>
DIALOG_UNAVAILABLE</H3>
<PRE>
public static final byte <B>DIALOG_UNAVAILABLE</B></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;
<P>
<DD>Thrown for example when SIP connection does not belong to any Dialog. <p> As of version 1.1.0 this error code is deprecated, as it was not used  at all in previous versions.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.sip.SipException.DIALOG_UNAVAILABLE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="UNKNOWN_TYPE"><!-- --></A><H3>
UNKNOWN_TYPE</H3>
<PRE>
public static final byte <B>UNKNOWN_TYPE</B></PRE>
<DL>
<DD>Used when for example Content-Type is not set before filling the message body.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html#openContentOutputStream()"><CODE>SipConnection.openContentOutputStream()</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.UNKNOWN_TYPE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="UNKNOWN_LENGTH"><!-- --></A><H3>
UNKNOWN_LENGTH</H3>
<PRE>
public static final byte <B>UNKNOWN_LENGTH</B></PRE>
<DL>
<DD>Used when for example Content-Length is not set  before filling the  message body. As of version 1.1.0 this error code is not thrown when sending, as  the content length header is automatically set if not given by the user.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html#openContentOutputStream()"><CODE>SipConnection.openContentOutputStream()</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.UNKNOWN_LENGTH">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="INVALID_STATE"><!-- --></A><H3>
INVALID_STATE</H3>
<PRE>
public static final byte <B>INVALID_STATE</B></PRE>
<DL>
<DD>Method call not allowed, because of wrong state in SipConnection or SipRefreshHelper.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html" title="interface in javax.microedition.sip"><CODE>SipConnection</CODE></A>, <A HREF="../../../javax/microedition/sip/SipClientConnection.html" title="interface in javax.microedition.sip"><CODE>SipClientConnection</CODE></A>, <A HREF="../../../javax/microedition/sip/SipServerConnection.html" title="interface in javax.microedition.sip"><CODE>SipServerConnection</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.INVALID_STATE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="INVALID_OPERATION"><!-- --></A><H3>
INVALID_OPERATION</H3>
<PRE>
public static final byte <B>INVALID_OPERATION</B></PRE>
<DL>
<DD>The system does not allow particular operation.  NOTICE! This error does not handle security exceptions.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html" title="interface in javax.microedition.sip"><CODE>SipConnection</CODE></A>, <A HREF="../../../javax/microedition/sip/SipClientConnection.html" title="interface in javax.microedition.sip"><CODE>SipClientConnection</CODE></A>, <A HREF="../../../javax/microedition/sip/SipServerConnection.html" title="interface in javax.microedition.sip"><CODE>SipServerConnection</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.INVALID_OPERATION">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="TRANSACTION_UNAVAILABLE"><!-- --></A><H3>
TRANSACTION_UNAVAILABLE</H3>
<PRE>
public static final byte <B>TRANSACTION_UNAVAILABLE</B></PRE>
<DL>
<DD>System can not open any new transactions.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html" title="interface in javax.microedition.sip"><CODE>SipConnection</CODE></A>, <A HREF="../../../javax/microedition/sip/SipConnectionNotifier.html#acceptAndOpen()"><CODE>SipConnectionNotifier.acceptAndOpen()</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.TRANSACTION_UNAVAILABLE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="INVALID_MESSAGE"><!-- --></A><H3>
INVALID_MESSAGE</H3>
<PRE>
public static final byte <B>INVALID_MESSAGE</B></PRE>
<DL>
<DD>The message to be sent has invalid format.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html#send()"><CODE>SipConnection.send()</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.INVALID_MESSAGE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="ALREADY_RESPONDED"><!-- --></A><H3>
ALREADY_RESPONDED</H3>
<PRE>
public static final byte <B>ALREADY_RESPONDED</B></PRE>
<DL>
<DD>The response can not be sent because the system has already sent a  response.
<P>
<DL>
<DT><B>Since:</B></DT>  <DD>1.1.0</DD><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/sip/SipConnection.html#send()"><CODE>SipConnection.send()</CODE></A>, <A HREF="../../../constant-values.html#javax.microedition.sip.SipException.ALREADY_RESPONDED">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="GENERAL_ERROR"><!-- --></A><H3>
GENERAL_ERROR</H3>
<PRE>
public static final byte <B>GENERAL_ERROR</B></PRE>
<DL>
<DD>Other SIP error. An error that does not fit naturally into the other  categories. For example this exception can be thrown from any method  that throws SipException if there is an error within a native SIP stack serving the request.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.sip.SipException.GENERAL_ERROR">Constant Field Values</A></DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="SipException(byte)"><!-- --></A><H3>
SipException</H3>
<PRE>
public <B>SipException</B>(byte&nbsp;errorCode)</PRE>
<DL>
<DD>Construct SipException with error code.
<P>
<DT><B>Parameters:</B><DD><CODE>errorCode</CODE> - error code. If the error code is none of the specified codes the Exception is initialized with default GENERAL_ERROR.</DL>
<HR>

<A NAME="SipException(java.lang.String, byte)"><!-- --></A><H3>
SipException</H3>
<PRE>
public <B>SipException</B>(java.lang.String&nbsp;message,                    byte&nbsp;errorCode)</PRE>
<DL>
<DD>Construct SipException with textual message and error code.
<P>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - error message.<DD><CODE>errorCode</CODE> - error code. If the error code is none of the specified codes the Exception is initialized with default GENERAL_ERROR.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getErrorCode()"><!-- --></A><H3>
getErrorCode</H3>
<PRE>
public byte <B>getErrorCode</B>()</PRE>
<DL>
<DD>Gets the error code
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SipException.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<font size=-1>Copyright &copy; 2003-2007 Nokia Corporation. All Rights Reserved.<br/>   Java is a trademark of Sun Microsystems, Inc.
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?