Skip to content

Commit bc8c9f1

Browse files
authored
Add InstitutionError error class (#114)
1 parent e54bc4c commit bc8c9f1

6 files changed

Lines changed: 26 additions & 10 deletions

File tree

docs/genindex.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<head>
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99

10-
<title>Index &#8212; Plaid Python 2.0.3 documentation</title>
10+
<title>Index &#8212; Plaid Python 2.1.1 documentation</title>
1111

1212
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1313
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1414

1515
<script type="text/javascript">
1616
var DOCUMENTATION_OPTIONS = {
1717
URL_ROOT: './',
18-
VERSION: '2.0.3',
18+
VERSION: '2.1.1',
1919
COLLAPSE_INDEX: false,
2020
FILE_SUFFIX: '.html',
2121
HAS_SOURCE: false,
@@ -171,6 +171,8 @@ <h2 id="I">I</h2>
171171
<li><a href="index.html#plaid.api.Identity">Identity (class in plaid.api)</a>
172172
</li>
173173
<li><a href="index.html#plaid.api.Income">Income (class in plaid.api)</a>
174+
</li>
175+
<li><a href="index.html#plaid.errors.InstitutionError">InstitutionError</a>
174176
</li>
175177
<li><a href="index.html#plaid.api.Institutions">Institutions (class in plaid.api)</a>
176178
</li>

docs/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Plaid Python Documentation! &#8212; Plaid Python 2.0.3 documentation</title>
9+
<title>Plaid Python Documentation! &#8212; Plaid Python 2.1.1 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.3',
17+
VERSION: '2.1.1',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,
@@ -648,7 +648,7 @@ <h2>API Endpoints<a class="headerlink" href="#api-endpoints" title="Permalink to
648648
<dl class="exception">
649649
<dt id="plaid.errors.PlaidError">
650650
<em class="property">exception </em><code class="descclassname">plaid.errors.</code><code class="descname">PlaidError</code><span class="sig-paren">(</span><em>message</em>, <em>type</em>, <em>code</em>, <em>display_message</em><span class="sig-paren">)</span><a class="headerlink" href="#plaid.errors.PlaidError" title="Permalink to this definition"></a></dt>
651-
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></code></p>
651+
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p>
652652
<p>A Plaid API error.</p>
653653
<table class="docutils field-list" frame="void" rules="none">
654654
<col class="field-name" />
@@ -711,6 +711,13 @@ <h2>API Endpoints<a class="headerlink" href="#api-endpoints" title="Permalink to
711711
<p>There is invalid information about an item or it is not supported.</p>
712712
</dd></dl>
713713

714+
<dl class="exception">
715+
<dt id="plaid.errors.InstitutionError">
716+
<em class="property">exception </em><code class="descclassname">plaid.errors.</code><code class="descname">InstitutionError</code><span class="sig-paren">(</span><em>message</em>, <em>type</em>, <em>code</em>, <em>display_message</em><span class="sig-paren">)</span><a class="headerlink" href="#plaid.errors.InstitutionError" title="Permalink to this definition"></a></dt>
717+
<dd><p>Bases: <a class="reference internal" href="#plaid.errors.PlaidError" title="plaid.errors.PlaidError"><code class="xref py py-class docutils literal"><span class="pre">plaid.errors.PlaidError</span></code></a></p>
718+
<p>There are errors for the requested financial institution.</p>
719+
</dd></dl>
720+
714721
</div>
715722
</div>
716723
<div class="section" id="indices-and-tables">

docs/py-modindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Python Module Index &#8212; Plaid Python 2.0.3 documentation</title>
9+
<title>Python Module Index &#8212; Plaid Python 2.1.1 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.3',
17+
VERSION: '2.1.1',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,

docs/search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<head>
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88

9-
<title>Search &#8212; Plaid Python 2.0.3 documentation</title>
9+
<title>Search &#8212; Plaid Python 2.1.1 documentation</title>
1010

1111
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
1212
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1313

1414
<script type="text/javascript">
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT: './',
17-
VERSION: '2.0.3',
17+
VERSION: '2.1.1',
1818
COLLAPSE_INDEX: false,
1919
FILE_SUFFIX: '.html',
2020
HAS_SOURCE: false,

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plaid/errors.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ class ItemError(PlaidError):
6161
pass
6262

6363

64+
class InstitutionError(PlaidError):
65+
'''There are errors for the requested financial institution.'''
66+
67+
pass
68+
69+
6470
PLAID_ERROR_TYPE_MAP = {
71+
'INSTITUTION_ERROR': InstitutionError,
6572
'INVALID_REQUEST': InvalidRequestError,
6673
'INVALID_INPUT': InvalidInputError,
6774
'RATE_LIMIT_EXCEEDED': RateLimitExceededError,

0 commit comments

Comments
 (0)