BoundsError

BoundsError([a],[i])

An indexing operation into an array, a, tried to access an out-of-bounds element, i.

Examples

julia> try
        a[0] 
        a[end+1] 
       catch e
        println(e)
       end
BoundsError()
julia> arr = [3,4,5]
       splice!(arr,0)
BoundsError()
while loading In[3], in expression starting on line 2

 in splice! at array.jl:599 (repeats 2 times)

See Also

ArgumentError, AssertionError, BoundsError, DivideError, DomainError, EOFError, error, ErrorException, InexactError, InitError, KeyError, LoadError, MethodError, OutOfMemoryError, OverflowError, ParseError, ReadOnlyMemoryError, showerror, StackOverflowError, SystemError, TypeError, UndefRefError, UndefVarError,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: