source: branches/objectmq_old/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/utility/ValueOrException.html

Last change on this file was 9, checked in by stoda, 12 years ago

First commit

File size: 12.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_18) on Tue Dec 11 11:47:09 GMT 2012 -->
6<TITLE>
7ValueOrException
8</TITLE>
9
10<META NAME="date" CONTENT="2012-12-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="ValueOrException";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="../../../com/rabbitmq/utility/Utility.html" title="class in com.rabbitmq.utility"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;NEXT CLASS</FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../index.html?com/rabbitmq/utility/ValueOrException.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="ValueOrException.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90com.rabbitmq.utility</FONT>
91<BR>
92Class ValueOrException&lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt;</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.utility.ValueOrException&lt;V,E&gt;</B>
96</PRE>
97<HR>
98<DL>
99<DT><PRE>public class <B>ValueOrException&lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt;</B><DT>extends java.lang.Object</DL>
100</PRE>
101
102<P>
103<HR>
104
105<P>
106
107<!-- ========== METHOD SUMMARY =========== -->
108
109<A NAME="method_summary"><!-- --></A>
110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113<B>Method Summary</B></FONT></TH>
114</TR>
115<TR BGCOLOR="white" CLASS="TableRowColor">
116<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117<CODE>&nbsp;<A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">V</A></CODE></FONT></TD>
118<TD><CODE><B><A HREF="../../../com/rabbitmq/utility/ValueOrException.html#getValue()">getValue</A></B>()</CODE>
119
120<BR>
121&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve value or throw exception</TD>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125<CODE>static
126<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
127<TR ALIGN="right" VALIGN="">
128<TD NOWRAP><FONT SIZE="-1">
129<CODE>&lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt; 
130<BR>
131<A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="class in com.rabbitmq.utility">ValueOrException</A>&lt;V,E&gt;</CODE></FONT></TD>
132</TR>
133</TABLE>
134</CODE></FONT></TD>
135<TD><CODE><B><A HREF="../../../com/rabbitmq/utility/ValueOrException.html#makeException(E)">makeException</A></B>(E&nbsp;exception)</CODE>
136
137<BR>
138&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method for exceptions</TD>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142<CODE>static
143<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
144<TR ALIGN="right" VALIGN="">
145<TD NOWRAP><FONT SIZE="-1">
146<CODE>&lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt; 
147<BR>
148<A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="class in com.rabbitmq.utility">ValueOrException</A>&lt;V,E&gt;</CODE></FONT></TD>
149</TR>
150</TABLE>
151</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../com/rabbitmq/utility/ValueOrException.html#makeValue(V)">makeValue</A></B>(V&nbsp;value)</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method for values</TD>
156</TR>
157</TABLE>
158&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
159<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
160<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
161<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
162</TR>
163<TR BGCOLOR="white" CLASS="TableRowColor">
164<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
165</TR>
166</TABLE>
167&nbsp;
168<P>
169
170<!-- ============ METHOD DETAIL ========== -->
171
172<A NAME="method_detail"><!-- --></A>
173<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
174<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
175<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
176<B>Method Detail</B></FONT></TH>
177</TR>
178</TABLE>
179
180<A NAME="makeValue(java.lang.Object)"><!-- --></A><A NAME="makeValue(V)"><!-- --></A><H3>
181makeValue</H3>
182<PRE>
183public static &lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt; <A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="class in com.rabbitmq.utility">ValueOrException</A>&lt;V,E&gt; <B>makeValue</B>(V&nbsp;value)</PRE>
184<DL>
185<DD>Factory method for values
186<P>
187<DD><DL>
188<DT><B>Parameters:</B><DD><CODE>value</CODE> - the value to wrap as a ValueOrException
189<DT><B>Returns:</B><DD>the wrapped value</DL>
190</DD>
191</DL>
192<HR>
193
194<A NAME="makeException(java.lang.Throwable)"><!-- --></A><A NAME="makeException(E)"><!-- --></A><H3>
195makeException</H3>
196<PRE>
197public static &lt;V,E extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;E&gt;&gt; <A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="class in com.rabbitmq.utility">ValueOrException</A>&lt;V,E&gt; <B>makeException</B>(E&nbsp;exception)</PRE>
198<DL>
199<DD>Factory method for exceptions
200<P>
201<DD><DL>
202<DT><B>Parameters:</B><DD><CODE>exception</CODE> - the exception to wrap as a ValueOrException
203<DT><B>Returns:</B><DD>the wrapped exception</DL>
204</DD>
205</DL>
206<HR>
207
208<A NAME="getValue()"><!-- --></A><H3>
209getValue</H3>
210<PRE>
211public <A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">V</A> <B>getValue</B>()
212           throws <A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">E</A> extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;<A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">E</A>&gt;</PRE>
213<DL>
214<DD>Retrieve value or throw exception
215<P>
216<DD><DL>
217
218<DT><B>Returns:</B><DD>the wrapped value, if it's a value
219<DT><B>Throws:</B>
220<DD><CODE>E</CODE> - the wrapped exception, if it's an exception
221<DD><CODE><A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">E</A> extends java.lang.Throwable & <A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="interface in com.rabbitmq.utility">SensibleClone</A>&lt;<A HREF="../../../com/rabbitmq/utility/ValueOrException.html" title="type parameter in ValueOrException">E</A>&gt;</CODE></DL>
222</DD>
223</DL>
224<!-- ========= END OF CLASS DATA ========= -->
225<HR>
226
227
228<!-- ======= START OF BOTTOM NAVBAR ====== -->
229<A NAME="navbar_bottom"><!-- --></A>
230<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
231<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
232<TR>
233<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
234<A NAME="navbar_bottom_firstrow"><!-- --></A>
235<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
236  <TR ALIGN="center" VALIGN="top">
237  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
238  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
239  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
240  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
241  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
242  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
243  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
244  </TR>
245</TABLE>
246</TD>
247<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
248</EM>
249</TD>
250</TR>
251
252<TR>
253<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
254&nbsp;<A HREF="../../../com/rabbitmq/utility/Utility.html" title="class in com.rabbitmq.utility"><B>PREV CLASS</B></A>&nbsp;
255&nbsp;NEXT CLASS</FONT></TD>
256<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
257  <A HREF="../../../index.html?com/rabbitmq/utility/ValueOrException.html" target="_top"><B>FRAMES</B></A>  &nbsp;
258&nbsp;<A HREF="ValueOrException.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
259&nbsp;<SCRIPT type="text/javascript">
260  <!--
261  if(window==top) {
262    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
263  }
264  //-->
265</SCRIPT>
266<NOSCRIPT>
267  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
268</NOSCRIPT>
269
270
271</FONT></TD>
272</TR>
273<TR>
274<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
275  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
276<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
277DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
278</TR>
279</TABLE>
280<A NAME="skip-navbar_bottom"></A>
281<!-- ======== END OF BOTTOM NAVBAR ======= -->
282
283<HR>
284
285</BODY>
286</HTML>
Note: See TracBrowser for help on using the repository browser.