As of the time of writing this blog list, below are a list of built-in exception-handling errors.
Julia has a number of built-in exception types that are used to indicate errors and handle exceptional conditions during program execution. Some of the most common built-in exception types in Julia include:
Exception |
---|
ArgumentError |
BoundsError |
CompositeException |
DimensionMismatch |
DivideError |
DomainError |
EOFError |
ErrorException |
InexactError |
InitError |
InterruptException |
InvalidStateException |
KeyError |
LoadError |
OutOfMemoryError |
ReadOnlyMemoryError |
RemoteException |
MethodError |
OverflowError |
Meta.ParseError |
SystemError |
TypeError |
UndefRefError |
UndefVarError |
StringIndexError |
These built-in exceptions can be used in combination with try-catch blocks to handle errors and exceptions in Julia. By catching and handling exceptions, it is possible to gracefully recover from errors and prevent the program from crashing or behaving unexpectedly.