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.
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
showerror method to show a descriptive representation of an exception object (for example useful for exceptions with field info with magic numbers inherited from LAPACK, https://github.com/JuliaLang/julia/blob/5fa91e296c1ef6a340163df81067d6ee314f03b2/base/linalg/exceptions.jl) Hi, is anyone working on the other exceptions?
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
Most helpful comment
Hey I would like to work on it can someone help me out on how to move forward?