📄 jcoexception.html
字号:
<PRE>
public <B>JCoException</B>(int group,
java.lang.String key,
java.lang.String message)</PRE>
<DL>
<DD>Creates an instance of the error object with the specified message
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - the error group<DD><CODE>key</CODE> - error code to identify the error<DD><CODE>message</CODE> - the specified detail message.</DL>
</DL>
<HR>
<A NAME="JCoException(int, java.lang.String, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
JCoException</H3>
<PRE>
public <B>JCoException</B>(int group,
java.lang.String key,
java.lang.String message,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Creates an instance of the error object with the specified message
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - the error group<DD><CODE>key</CODE> - error code to identify the error<DD><CODE>message</CODE> - the specified detail message.<DD><CODE>cause</CODE> - a Throwable that caused the JCoException.</DL>
</DL>
<HR>
<A NAME="JCoException(int, java.lang.String, java.lang.String, java.lang.String, char, java.lang.String, java.lang.String[])"><!-- --></A><H3>
JCoException</H3>
<PRE>
public <B>JCoException</B>(int group,
java.lang.String key,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters)</PRE>
<DL>
<DD>Creates an instance of the exception object with the specified message and more information for ABAP messages
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - the error group<DD><CODE>key</CODE> - error code to identify the error<DD><CODE>message</CODE> - the specified detail message.<DD><CODE>messageClass</CODE> - the specified ABAP message class.<DD><CODE>messageType</CODE> - the specified ABAP message type, e.g. 'A' or 'E'<DD><CODE>messageNumber</CODE> - the specified ABAP message number.<DD><CODE>messageParameters</CODE> - the specified ABAP message Parameters.</DL>
</DL>
<HR>
<A NAME="JCoException(int, java.lang.String, java.lang.String, java.lang.String, char, java.lang.String, java.lang.String[], java.lang.Throwable)"><!-- --></A><H3>
JCoException</H3>
<PRE>
public <B>JCoException</B>(int group,
java.lang.String key,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Creates an instance of the exception object with the specified message and more information for ABAP messages
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - the error group<DD><CODE>key</CODE> - error code to identify the error<DD><CODE>message</CODE> - the specified detail message.<DD><CODE>messageClass</CODE> - the specified ABAP message class.<DD><CODE>messageType</CODE> - the specified ABAP message type, e.g. 'A' or 'E'<DD><CODE>messageNumber</CODE> - the specified ABAP message number.<DD><CODE>messageParameters</CODE> - the specified ABAP message Parameters.<DD><CODE>cause</CODE> - a Throwable that caused the JCoException.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getGroup()"><!-- --></A><H3>
getGroup</H3>
<PRE>
public final int <B>getGroup</B>()</PRE>
<DL>
<DD>Returns the error group. <p>The error group can be one of the following constants: <table border="1" > <tr><th>Constant</th><th>Description</th ></tr > <tr><td>JCO_ERROR_ABAP_EXCEPTION </td><td> An exception has been thrown by a function module in the remote system </td></tr> <tr><td>JCO_ERROR_APPLICATION_EXCEPTION </td><td> An application exception has occurred in the remote SAP system </td></tr> <tr><td>JCO_ERROR_CANCELLED </td><td> A registered server connection has been canceled </td></tr> <tr><td>JCO_ERROR_COMMUNICATION </td><td> Exception caused by network problems, connection breakdowns, gateway problems, inavailability of the remote SAP system, etc. </td></tr> <tr><td>JCO_ERROR_FUNCTION_NOT_FOUND </td><td> A function interface or one of the data structures could not completely be retrieved from the repository </td></tr> <tr><td>JCO_ERROR_ILLEGAL_TID </td><td> An invalid transaction ID has been encountered. The TID was either longer than 24 characters or contained illegal characters </td></tr> <tr><td>JCO_ERROR_INITIALIZATION </td><td> An initialization process failed </td></tr> <tr><td>JCO_ERROR_INTERNAL </td><td> An exception inside of JCoRuntime </td></tr> <tr><td>JCO_ERROR_LOGON_FAILURE </td><td> Authorization failures during the logon phase usually caused by unknown user name, wrong password, invalid certificates, etc. </td></tr> <tr><td>JCO_ERROR_NULL_HANDLE </td><td> An internally used connection handle is invalid </td></tr> <tr><td>JCO_ERROR_PROGRAM </td><td> A general program exception has occurred </td></tr> <tr><td>JCO_ERROR_CONFIGURATION </td><td> A general configuration error detected. If the configuration obtained from DestinationDataProvider or ServerDataProvider is wrong, incomplete or not unique </td></tr> <tr><td>JCO_ERROR_PROTOCOL </td><td> An internal communication protocol error has been detected </td></tr> <tr><td>JCO_ERROR_RESOURCE </td><td> Indicates that JCO has run out of resources such as connections in a connection pool </td></tr> <tr><td>JCO_ERROR_SERVER_STARTUP </td><td> Something went wrong during the startup phase of a JCoRuntime server usually caused by passing a wrong gateway host or gateway service </td></tr> <tr><td>JCO_ERROR_STATE_BUSY </td><td> The remote SAP system is busy. Try again later </td></tr> <tr><td>JCO_ERROR_SYSTEM_FAILURE </td><td> A system failure in the remote SAP system has occurred </td></tr> <tr><td>JCO_ERROR_UNSUPPORTED_CODEPAGE </td><td> Either the remote SAP system or the local systems runs under a codepage which is not supported by JCoRuntime </td></tr> <tr><td>JCO_ERROR_ILLEGAL_ARGUMENT </td><td> An illegal method argument has been detected </td></tr> <tr><td>JCO_ERROR_CONCURRENT_CALL </td><td> A concurrent method call has been detected </td></tr> </table>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the error group</DL>
</DD>
</DL>
<HR>
<A NAME="getKey()"><!-- --></A><H3>
getKey</H3>
<PRE>
public final java.lang.String <B>getKey</B>()</PRE>
<DL>
<DD>Returns the error key
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the error key</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageClass()"><!-- --></A><H3>
getMessageClass</H3>
<PRE>
public java.lang.String <B>getMessageClass</B>()</PRE>
<DL>
<DD>Returns the ABAP message class
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ABAP message class</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageNumber()"><!-- --></A><H3>
getMessageNumber</H3>
<PRE>
public java.lang.String <B>getMessageNumber</B>()</PRE>
<DL>
<DD>Returns the ABAP message number
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ABAP message number</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageText()"><!-- --></A><H3>
getMessageText</H3>
<PRE>
public java.lang.String <B>getMessageText</B>()</PRE>
<DL>
<DD>Returns the ABAP message text
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ABAP message text</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageParameter(int)"><!-- --></A><H3>
getMessageParameter</H3>
<PRE>
public java.lang.String <B>getMessageParameter</B>(int index)</PRE>
<DL>
<DD>Returns the ABAP message parameter at position index or null if there is none at that position
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the parameter valid is between 0 and 3
<DT><B>Returns:</B><DD>the ABAP message parameter</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageParameters()"><!-- --></A><H3>
getMessageParameters</H3>
<PRE>
public java.lang.String[] <B>getMessageParameters</B>()</PRE>
<DL>
<DD>Returns the ABAP message parameters as array. Note: parameters that are not filled can be null.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ABAP message parameters as array</DL>
</DD>
</DL>
<HR>
<A NAME="getMessageType()"><!-- --></A><H3>
getMessageType</H3>
<PRE>
public char <B>getMessageType</B>()</PRE>
<DL>
<DD>Returns the ABAP message type
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the ABAP message type</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a short description of this error
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this <tt>JCoException</tt>.</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=2 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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JCoException.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/sap/conn/jco/JCoDestinationManager.html" title="class in com.sap.conn.jco"><B>PREV CLASS</B></A>
<A HREF="../../../../com/sap/conn/jco/JCoExtendedFieldMetaData.html" title="interface in com.sap.conn.jco"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/sap/conn/jco/JCoException.html" target="_top"><B>FRAMES</B></A>
<A HREF="JCoException.html" target="_top"><B>NO FRAMES</B></A>
<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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright © 2008 SAP AG. All Rights Reserved.</i>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -