| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>ServerErrorException</title> |
| <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../script.js"></script> |
| |
| <link rel="shortcut icon" href="/img/jakarta-favicon.ico"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ServerErrorException"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../javax/ws/rs/RuntimeType.html" title="enum in javax.ws.rs"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../javax/ws/rs/ServiceUnavailableException.html" title="class in javax.ws.rs"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?javax/ws/rs/ServerErrorException.html" target="_top">Frames</a></li> |
| <li><a href="ServerErrorException.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#methods.inherited.from.class.javax.ws.rs.WebApplicationException">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li>Method</li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">javax.ws.rs</div> |
| <h2 title="Class ServerErrorException" class="title">Class ServerErrorException</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>java.lang.Throwable</li> |
| <li> |
| <ul class="inheritance"> |
| <li>java.lang.Exception</li> |
| <li> |
| <ul class="inheritance"> |
| <li>java.lang.RuntimeException</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../javax/ws/rs/WebApplicationException.html" title="class in javax.ws.rs">javax.ws.rs.WebApplicationException</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>javax.ws.rs.ServerErrorException</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.io.Serializable</dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../javax/ws/rs/InternalServerErrorException.html" title="class in javax.ws.rs">InternalServerErrorException</a>, <a href="../../../javax/ws/rs/ServiceUnavailableException.html" title="class in javax.ws.rs">ServiceUnavailableException</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">ServerErrorException</span> |
| extends <a href="../../../javax/ws/rs/WebApplicationException.html" title="class in javax.ws.rs">WebApplicationException</a></pre> |
| <div class="block">A base runtime application exception indicating a server error |
| (HTTP <code>5xx</code> status codes).</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.0</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../serialized-form.html#javax.ws.rs.ServerErrorException">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-int-">ServerErrorException</a></span>(int status)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-int-java.lang.Throwable-">ServerErrorException</a></span>(int status, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-javax.ws.rs.core.Response.Status-">ServerErrorException</a></span>(<a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-javax.ws.rs.core.Response.Status-java.lang.Throwable-">ServerErrorException</a></span>(<a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-javax.ws.rs.core.Response-">ServerErrorException</a></span>(<a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-javax.ws.rs.core.Response-java.lang.Throwable-">ServerErrorException</a></span>(<a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-int-">ServerErrorException</a></span>(java.lang.String message, |
| int status)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-int-java.lang.Throwable-">ServerErrorException</a></span>(java.lang.String message, |
| int status, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-javax.ws.rs.core.Response.Status-">ServerErrorException</a></span>(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-javax.ws.rs.core.Response.Status-java.lang.Throwable-">ServerErrorException</a></span>(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-javax.ws.rs.core.Response-">ServerErrorException</a></span>(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/ws/rs/ServerErrorException.html#ServerErrorException-java.lang.String-javax.ws.rs.core.Response-java.lang.Throwable-">ServerErrorException</a></span>(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response, |
| java.lang.Throwable cause)</code> |
| <div class="block">Construct a new server error exception.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.javax.ws.rs.WebApplicationException"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class javax.ws.rs.<a href="../../../javax/ws/rs/WebApplicationException.html" title="class in javax.ws.rs">WebApplicationException</a></h3> |
| <code><a href="../../../javax/ws/rs/WebApplicationException.html#getResponse--">getResponse</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Throwable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Throwable</h3> |
| <code>addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ServerErrorException-javax.ws.rs.core.Response.Status-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(<a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is <code>null</code> or is not from |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code |
| family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-javax.ws.rs.core.Response.Status-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is <code>null</code> or is not from |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code |
| family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(int status)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is not a valid HTTP status code or |
| if it is not from the <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> |
| status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| int status)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is not a valid HTTP status code or |
| if it is not from the <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> |
| status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-javax.ws.rs.core.Response-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(<a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>response</code> - server error response. Must have a status code set to a <code>5xx</code> |
| status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the response status code is not from the |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-javax.ws.rs.core.Response-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>response</code> - server error response. Must have a status code set to a <code>5xx</code> |
| status code.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the response status code is not from the |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-javax.ws.rs.core.Response.Status-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(<a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is <code>null</code> or is not from |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code |
| family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-javax.ws.rs.core.Response.Status-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.Status.html" title="enum in javax.ws.rs.core">Response.Status</a> status, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is <code>null</code> or is not from |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code |
| family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-int-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(int status, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is not a valid HTTP status code or |
| if it is not from the <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> |
| status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-int-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| int status, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>status</code> - server error status. Must be a <code>5xx</code> status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the status code is not a valid HTTP status code or |
| if it is not from the <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> |
| status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-javax.ws.rs.core.Response-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(<a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>response</code> - server error response. Must have a status code set to a <code>5xx</code> |
| status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the response status code is not from the |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ServerErrorException-java.lang.String-javax.ws.rs.core.Response-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ServerErrorException</h4> |
| <pre>public ServerErrorException(java.lang.String message, |
| <a href="../../../javax/ws/rs/core/Response.html" title="class in javax.ws.rs.core">Response</a> response, |
| java.lang.Throwable cause)</pre> |
| <div class="block">Construct a new server error exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>message</code> - the detail message (which is saved for later retrieval |
| by the <code>Throwable.getMessage()</code> method).</dd> |
| <dd><code>response</code> - server error response. Must have a status code set to a <code>5xx</code> |
| status code.</dd> |
| <dd><code>cause</code> - the underlying cause of the exception.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - in case the response status code is not from the |
| <a href="../../../javax/ws/rs/core/Response.Status.Family.html#SERVER_ERROR"><code>Response.Status.Family.SERVER_ERROR</code></a> status code family.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../index-all.html">Index</a></li> |
| <li><a href="../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../javax/ws/rs/RuntimeType.html" title="enum in javax.ws.rs"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../javax/ws/rs/ServiceUnavailableException.html" title="class in javax.ws.rs"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../index.html?javax/ws/rs/ServerErrorException.html" target="_top">Frames</a></li> |
| <li><a href="ServerErrorException.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#methods.inherited.from.class.javax.ws.rs.WebApplicationException">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li>Method</li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |