Skip to content

Commit

Permalink
Merge pull request #6943 from bashtage/document-warnings-exceptions
Browse files Browse the repository at this point in the history
DOC: Document exceptions and warnings
  • Loading branch information
bashtage committed Aug 4, 2020
2 parents a460c14 + 4b50eca commit 257fae3
Show file tree
Hide file tree
Showing 15 changed files with 448 additions and 157 deletions.
1 change: 1 addition & 0 deletions docs/source/dev/index.rst
Expand Up @@ -99,6 +99,7 @@ Contents
maintainer_notes
test_notes
naming_conventions
warnings-and-exceptions
dataset_notes
examples
get_involved
Expand Down
58 changes: 58 additions & 0 deletions docs/source/dev/warnings-and-exceptions.rst
@@ -0,0 +1,58 @@
=======================
Exceptions and Warnings
=======================

Exceptions
----------

Errors derive from Exception or another custom error. Custom errors are
only needed if standard errors, for example ValueError or TypeError, are not
accurate descriptions of the cause for the error.

.. module:: statsmodels.tools.sm_exceptions
:synopsis: Exceptions and Warnings

.. currentmodule:: statsmodels.tools.sm_exceptions

.. autosummary::
:toctree: generated/

ParseError
PerfectSeparationError
X13NotFoundError
X13Error

Warnings
--------

Warnings derive from either an existing warning or another custom
warning, and are often accompanied by a string using the format
``warning_name_doc`` that services as a generic message to use when the
warning is raised.


.. currentmodule:: statsmodels.tools.sm_exceptions

.. autosummary::
:toctree: generated/

X13Warning
IOWarning
ModuleUnavailableWarning
ModelWarning
ConvergenceWarning
CacheWriteWarning
IterationLimitWarning
InvalidTestWarning
NotImplementedWarning
OutputWarning
DomainWarning
ValueWarning
EstimationWarning
SingularMatrixWarning
HypothesisTestWarning
InterpolationWarning
PrecisionWarning
SpecificationWarning
HessianInversionWarning
CollinearityWarning
31 changes: 30 additions & 1 deletion docs/source/names_wordlist.txt
Expand Up @@ -14,6 +14,7 @@ Azzalini
Bai
Bakirov
Balazs
Baran
Bańbura
Behrens
Benjamini
Expand All @@ -23,6 +24,7 @@ Billah
Biometrical
Biopharmaceutical
Biostatistics
Blunck
Borenstein
Breslow
Breusch
Expand All @@ -31,9 +33,13 @@ Bronwyn
Broyden
Chantal
Charlier
Chaudhuri
Chichester
Cinthia
Clauss
Commandeur
Conaway
Coster
Cribbie
Degreeds
Denton
Expand All @@ -58,6 +64,7 @@ Finney
Fioruci
Fleiss
Forsythe
Galuzio
Gangat
Gelman
Geng
Expand All @@ -78,13 +85,15 @@ Hamdi
Hampel
Hannan
Hanszel
Haoyu
Hartung
Hassan
Hastie
Hauck
Hausman
Helmert
Helmut
Henning
Herbst
Hertzprung
Hobson
Expand All @@ -107,6 +116,7 @@ Josef
Jurgen
Kacker
Kaplan
Karakus
Kerby
Kibirige
Knotek
Expand All @@ -116,8 +126,10 @@ Kolmogorov
Koopman
Kotz
Kraay
Kumar
Kwiatkowski
Lakhotia
Larralde
Levene
Levinson
Liang
Expand All @@ -128,10 +140,14 @@ Lobato
Longley
Louzada
Lucrezia
Lyttle
Löning
Lütkepohl
MacKinnon
Mahalanobis
Mandel
Manmeet
Markus
Mazon
Mehrotra
Merothra
Expand All @@ -151,13 +167,16 @@ Oneway
Ord
Ozen
Paule
Paulo
Pellegrini
Pelletier
Penrose
Perktold
Petropoulos
Piet
Ploberger
Pölsterl
Qi
Qingqing
Quackenbush
Raphson
Expand All @@ -172,6 +191,7 @@ Saggiorato
Samesh
Sandu
Satterthwait
Scherrer
Scholl
Schucany
Schwarz
Expand All @@ -196,6 +216,7 @@ Stata
Steiger
Surico
Szekely
Tanaka
Theano
Tibshirani
Tukey
Expand All @@ -208,6 +229,7 @@ Wellek
Wes
Wichern
Wishart
Wouter
Yao
Yasine
Yichuan
Expand All @@ -223,4 +245,11 @@ hannan
luxiform
oaxaca
partev
seabold
seabold
zveryansky
Řehůřek
郭飞
Ananyev
Zhiqing
adrienpacifico
aeturrell

0 comments on commit 257fae3

Please sign in to comment.