Skip to content

Commit 1a47b29

Browse files
author
Antonio Buedo
authored
#v7.0.2110.0-rc - Exception handler update (#78)
* - REST error handler updated * - Old Refunds functionality fully removed * - Apidoc updated
1 parent 6989d0d commit 1a47b29

File tree

190 files changed

+2313
-1897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+2313
-1897
lines changed

apidocs/allclasses-index.html

Lines changed: 86 additions & 94 deletions
Large diffs are not rendered by default.

apidocs/allpackages-index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>All Packages</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="script.js"></script>

apidocs/com/bitpay/sdk/BitPayException.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2 title="Class BitPayException" class="title">Class BitPayException</h2>
106106
<li>java.lang.Exception</li>
107107
<li>
108108
<ul class="inheritance">
109-
<li>com.bitpay.sdk.BitPayException</li>
109+
<li>com.bitpay.sdk.exceptions.RateQueryException.BitPayException</li>
110110
</ul>
111111
</li>
112112
</ul>
@@ -126,7 +126,7 @@ <h2 title="Class BitPayException" class="title">Class BitPayException</h2>
126126
extends java.lang.Exception</pre>
127127
<dl>
128128
<dt><span class="seeLabel">See Also:</span></dt>
129-
<dd><a href="../../../serialized-form.html#com.bitpay.sdk.BitPayException">Serialized Form</a></dd>
129+
<dd><a href="../../../serialized-form.html#com.bitpay.sdk.exceptions.BitPayException">Serialized Form</a></dd>
130130
</dl>
131131
</li>
132132
</ul>

apidocs/com/bitpay/sdk/Client.html

Lines changed: 137 additions & 326 deletions
Large diffs are not rendered by default.

apidocs/com/bitpay/sdk/Config.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>Config</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../script.js"></script>

apidocs/com/bitpay/sdk/Env.Tokens.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>Env.Tokens</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../script.js"></script>

apidocs/com/bitpay/sdk/Env.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>Env</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../script.js"></script>

apidocs/com/bitpay/sdk/exceptions/BillCreationException.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>BillCreationException</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../../script.js"></script>
@@ -106,6 +106,12 @@ <h2 title="Class BillCreationException" class="title">Class BillCreationExceptio
106106
<li>java.lang.Exception</li>
107107
<li>
108108
<ul class="inheritance">
109+
<li>java.io.IOException</li>
110+
<li>
111+
<ul class="inheritance">
112+
<li>org.apache.http.client.ClientProtocolException</li>
113+
<li>
114+
<ul class="inheritance">
109115
<li><a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">com.bitpay.sdk.exceptions.BitPayException</a></li>
110116
<li>
111117
<ul class="inheritance">
@@ -124,6 +130,10 @@ <h2 title="Class BillCreationException" class="title">Class BillCreationExceptio
124130
</ul>
125131
</li>
126132
</ul>
133+
</li>
134+
</ul>
135+
</li>
136+
</ul>
127137
<div class="description">
128138
<ul class="blockList">
129139
<li class="blockList">
@@ -160,7 +170,8 @@ <h3>Constructor Summary</h3>
160170
</tr>
161171
<tbody>
162172
<tr class="altColor">
163-
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String)">BillCreationException</a></span>&#8203;(java.lang.String&nbsp;message)</code></th>
173+
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String,java.lang.String)">BillCreationException</a></span>&#8203;(java.lang.String&nbsp;status,
174+
java.lang.String&nbsp;message)</code></th>
164175
<td class="colLast">
165176
<div class="block">Construct the BillCreationException.</div>
166177
</td>
@@ -179,6 +190,13 @@ <h3>Constructor Summary</h3>
179190
</a>
180191
<h3>Method Summary</h3>
181192
<ul class="blockList">
193+
<li class="blockList"><a id="methods.inherited.from.class.com.bitpay.sdk.exceptions.BitPayException">
194+
<!-- -->
195+
</a>
196+
<h3>Methods inherited from class&nbsp;com.bitpay.sdk.exceptions.<a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">BitPayException</a></h3>
197+
<code><a href="BitPayException.html#getReasonPhrase()">getReasonPhrase</a>, <a href="BitPayException.html#getStatusCode()">getStatusCode</a></code></li>
198+
</ul>
199+
<ul class="blockList">
182200
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Throwable">
183201
<!-- -->
184202
</a>
@@ -208,16 +226,18 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
208226
<!-- -->
209227
</a>
210228
<h3>Constructor Detail</h3>
211-
<a id="&lt;init&gt;(java.lang.String)">
229+
<a id="&lt;init&gt;(java.lang.String,java.lang.String)">
212230
<!-- -->
213231
</a>
214232
<ul class="blockListLast">
215233
<li class="blockList">
216234
<h4>BillCreationException</h4>
217-
<pre>public&nbsp;BillCreationException&#8203;(java.lang.String&nbsp;message)</pre>
235+
<pre>public&nbsp;BillCreationException&#8203;(java.lang.String&nbsp;status,
236+
java.lang.String&nbsp;message)</pre>
218237
<div class="block">Construct the BillCreationException.</div>
219238
<dl>
220239
<dt><span class="paramLabel">Parameters:</span></dt>
240+
<dd><code>status</code> - String [optional] The Exception code to throw.</dd>
221241
<dd><code>message</code> - String [optional] The Exception message to throw.</dd>
222242
</dl>
223243
</li>

apidocs/com/bitpay/sdk/exceptions/BillDeliveryException.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>BillDeliveryException</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../../script.js"></script>
@@ -106,6 +106,12 @@ <h2 title="Class BillDeliveryException" class="title">Class BillDeliveryExceptio
106106
<li>java.lang.Exception</li>
107107
<li>
108108
<ul class="inheritance">
109+
<li>java.io.IOException</li>
110+
<li>
111+
<ul class="inheritance">
112+
<li>org.apache.http.client.ClientProtocolException</li>
113+
<li>
114+
<ul class="inheritance">
109115
<li><a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">com.bitpay.sdk.exceptions.BitPayException</a></li>
110116
<li>
111117
<ul class="inheritance">
@@ -124,6 +130,10 @@ <h2 title="Class BillDeliveryException" class="title">Class BillDeliveryExceptio
124130
</ul>
125131
</li>
126132
</ul>
133+
</li>
134+
</ul>
135+
</li>
136+
</ul>
127137
<div class="description">
128138
<ul class="blockList">
129139
<li class="blockList">
@@ -160,7 +170,8 @@ <h3>Constructor Summary</h3>
160170
</tr>
161171
<tbody>
162172
<tr class="altColor">
163-
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String)">BillDeliveryException</a></span>&#8203;(java.lang.String&nbsp;message)</code></th>
173+
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String,java.lang.String)">BillDeliveryException</a></span>&#8203;(java.lang.String&nbsp;status,
174+
java.lang.String&nbsp;message)</code></th>
164175
<td class="colLast">
165176
<div class="block">Construct the BillDeliveryException.</div>
166177
</td>
@@ -179,6 +190,13 @@ <h3>Constructor Summary</h3>
179190
</a>
180191
<h3>Method Summary</h3>
181192
<ul class="blockList">
193+
<li class="blockList"><a id="methods.inherited.from.class.com.bitpay.sdk.exceptions.BitPayException">
194+
<!-- -->
195+
</a>
196+
<h3>Methods inherited from class&nbsp;com.bitpay.sdk.exceptions.<a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">BitPayException</a></h3>
197+
<code><a href="BitPayException.html#getReasonPhrase()">getReasonPhrase</a>, <a href="BitPayException.html#getStatusCode()">getStatusCode</a></code></li>
198+
</ul>
199+
<ul class="blockList">
182200
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Throwable">
183201
<!-- -->
184202
</a>
@@ -208,16 +226,18 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
208226
<!-- -->
209227
</a>
210228
<h3>Constructor Detail</h3>
211-
<a id="&lt;init&gt;(java.lang.String)">
229+
<a id="&lt;init&gt;(java.lang.String,java.lang.String)">
212230
<!-- -->
213231
</a>
214232
<ul class="blockListLast">
215233
<li class="blockList">
216234
<h4>BillDeliveryException</h4>
217-
<pre>public&nbsp;BillDeliveryException&#8203;(java.lang.String&nbsp;message)</pre>
235+
<pre>public&nbsp;BillDeliveryException&#8203;(java.lang.String&nbsp;status,
236+
java.lang.String&nbsp;message)</pre>
218237
<div class="block">Construct the BillDeliveryException.</div>
219238
<dl>
220239
<dt><span class="paramLabel">Parameters:</span></dt>
240+
<dd><code>status</code> - String [optional] The Exception code to throw.</dd>
221241
<dd><code>message</code> - String [optional] The Exception message to throw.</dd>
222242
</dl>
223243
</li>

apidocs/com/bitpay/sdk/exceptions/BillException.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="en">
44
<head>
5-
<!-- Generated by javadoc (12.0.1) on Tue Sep 28 15:47:12 CEST 2021 -->
5+
<!-- Generated by javadoc (12.0.1) on Mon Oct 11 18:04:20 CEST 2021 -->
66
<title>BillException</title>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2021-09-28">
8+
<meta name="dc.created" content="2021-10-11">
99
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="../../../../script.js"></script>
@@ -106,6 +106,12 @@ <h2 title="Class BillException" class="title">Class BillException</h2>
106106
<li>java.lang.Exception</li>
107107
<li>
108108
<ul class="inheritance">
109+
<li>java.io.IOException</li>
110+
<li>
111+
<ul class="inheritance">
112+
<li>org.apache.http.client.ClientProtocolException</li>
113+
<li>
114+
<ul class="inheritance">
109115
<li><a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">com.bitpay.sdk.exceptions.BitPayException</a></li>
110116
<li>
111117
<ul class="inheritance">
@@ -119,6 +125,10 @@ <h2 title="Class BillException" class="title">Class BillException</h2>
119125
</ul>
120126
</li>
121127
</ul>
128+
</li>
129+
</ul>
130+
</li>
131+
</ul>
122132
<div class="description">
123133
<ul class="blockList">
124134
<li class="blockList">
@@ -159,7 +169,8 @@ <h3>Constructor Summary</h3>
159169
</tr>
160170
<tbody>
161171
<tr class="altColor">
162-
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String)">BillException</a></span>&#8203;(java.lang.String&nbsp;message)</code></th>
172+
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String,java.lang.String)">BillException</a></span>&#8203;(java.lang.String&nbsp;status,
173+
java.lang.String&nbsp;message)</code></th>
163174
<td class="colLast">
164175
<div class="block">Construct the BillException.</div>
165176
</td>
@@ -178,6 +189,13 @@ <h3>Constructor Summary</h3>
178189
</a>
179190
<h3>Method Summary</h3>
180191
<ul class="blockList">
192+
<li class="blockList"><a id="methods.inherited.from.class.com.bitpay.sdk.exceptions.BitPayException">
193+
<!-- -->
194+
</a>
195+
<h3>Methods inherited from class&nbsp;com.bitpay.sdk.exceptions.<a href="BitPayException.html" title="class in com.bitpay.sdk.exceptions">BitPayException</a></h3>
196+
<code><a href="BitPayException.html#getReasonPhrase()">getReasonPhrase</a>, <a href="BitPayException.html#getStatusCode()">getStatusCode</a></code></li>
197+
</ul>
198+
<ul class="blockList">
181199
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Throwable">
182200
<!-- -->
183201
</a>
@@ -207,16 +225,18 @@ <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
207225
<!-- -->
208226
</a>
209227
<h3>Constructor Detail</h3>
210-
<a id="&lt;init&gt;(java.lang.String)">
228+
<a id="&lt;init&gt;(java.lang.String,java.lang.String)">
211229
<!-- -->
212230
</a>
213231
<ul class="blockListLast">
214232
<li class="blockList">
215233
<h4>BillException</h4>
216-
<pre>public&nbsp;BillException&#8203;(java.lang.String&nbsp;message)</pre>
234+
<pre>public&nbsp;BillException&#8203;(java.lang.String&nbsp;status,
235+
java.lang.String&nbsp;message)</pre>
217236
<div class="block">Construct the BillException.</div>
218237
<dl>
219238
<dt><span class="paramLabel">Parameters:</span></dt>
239+
<dd><code>status</code> - String [optional] The Exception code to throw.</dd>
220240
<dd><code>message</code> - String [optional] The Exception message to throw.</dd>
221241
</dl>
222242
</li>

0 commit comments

Comments
 (0)