Julia: Undocumented exceptions

Created on 7 Oct 2017  ·  14Comments  ·  Source: JuliaLang/julia

Some days ago I generated a list of Exceptions without inline documentation. Here it is:

 Base.DNSError
 Base.Distributed.BatchProcessingError
 Base.LibGit2.Error.GitError
 Base.LinAlg.ARPACKException
 Base.LinAlg.LAPACKException
 Base.LinAlg.PosDefException
 Base.LinAlg.RankDeficientException
 Base.LinAlg.SingularException
 Base.Pkg.Entry.PkgTestError
 Base.Pkg.PkgError
 Base.Pkg.Resolve.MaxSum.UnsatError
 Base.PrecompilableError
 Base.SimdLoop.SimdError
 Base.SparseArrays.CHOLMOD.CHOLMODException
 Base.SparseArrays.UMFPACK.MatrixIllConditionedException
 Base.Test.FallbackTestSetException
 Base.UVError                                                          
 ~Base.WrappedException~   
 InvalidStateException
 SegmentationFault
 UnicodeError

Some of those are quite prominent, e.g. PosDefException.

Hacktoberfest doc good first issue help wanted

Most helpful comment

Hey I would like to work on it can someone help me out on how to move forward?

All 14 comments

Hey I would like to work on it can someone help me out on how to move forward?

Nice. Maybe we can collect some docstring proposals here. While we'll happily explain the howto, finding the right words for some of these exceptions needs some knowledge. For example, I myself also do not know what Base.WrappedException is for and could not write a docstring.

Can you suggest how to move forward, I can't seem to understand that.

Sure. Which Exception(s) would you be comfortable to start with? We'll go through the steps at https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md#improving-documentation

Base.LinAlg.LAPACKException
Base.LinAlg.SingularException

Are two of the errors that I am a little familiar with so I think it would be better to start with them.

Do you want to prepare an initial pull request with reference to this issue so that we have something to base the discussion on?

Yeah sure.

A documented exception (example: DimensionMismatch) has

Hi, is anyone working on the other exceptions?

7841

Update (using (subtypes(Exception)[map(x-> nothing != findfirst("No documentation found.", string(Base.Docs.doc(x))), subtypes(Exception))])

Base.CodePointError
Base.IOError
Base.InvalidCharError
Base.PrecompilableError
Base.SimdLoop.SimdError
CapturedException
Core.Compiler.DimensionMismatch
Core.Compiler.InvalidCodeError
Core.Compiler.KeyError
Distributed.BatchProcessingError
InvalidStateException
LibGit2.Error.GitError
LinearAlgebra.ARPACKException
LinearAlgebra.LAPACKException
LinearAlgebra.PosDefException
LinearAlgebra.RankDeficientException
LinearAlgebra.SingularException
Pkg.Resolve.MaxSum.UnsatError
Pkg.Types.PkgError
Pkg.Types.ResolverError
SegmentationFault
Sockets.DNSError
SuiteSparse.CHOLMOD.CHOLMODException
SuiteSparse.UMFPACK.MatrixIllConditionedException
Test.FallbackTestSetException

Not sure why LinearAlgebra.ARPACKException is even still defined? This could probably be removed?

Good find. I opened a corresponding issue at JuliaLinearAlgebra/Arpack.jl/issues/64, which still uses this

I added docstring for Sockets.DNSError in #34189

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ararslan picture ararslan  ·  3Comments

Keno picture Keno  ·  3Comments

m-j-w picture m-j-w  ·  3Comments

dpsanders picture dpsanders  ·  3Comments

StefanKarpinski picture StefanKarpinski  ·  3Comments