The error() function is used to produce an ErrorException that interrupts the normal flow of control.
to replace with something that cannot be caught, but for this one I cannot suggest a use case (maybe writing way past array boundaries when using @inbounds?)
to replace with something that cannot be caught, but for this one I cannot suggest a use case (maybe writing way past array boundaries when using @inbounds?)Maybe a better example for something that should not be possible to catch is an assertion error.
to replace with something that cannot be caught, but for this one I cannot suggest a use case (maybe writing way past array boundaries when using @inbounds?)Maybe a better example for something that should not be possible to catch is an assertion error.But then catching assertions is useful for test code that deliberately triggers them.