@@ -132,9 +132,10 @@ export
132132 # string types
133133 Char, DirectIndexString, AbstractString, String, IO,
134134 # errors
135- ErrorException, BoundsError, DivideError, DomainError, Exception, InexactError,
136- InterruptException, OutOfMemoryError, ReadOnlyMemoryError, OverflowError,
137- StackOverflowError, SegmentationFault, UndefRefError, UndefVarError, TypeError,
135+ ErrorException, BoundsError, DivideError, DomainError, Exception,
136+ InterruptException, InexactError, OutOfMemoryError, ReadOnlyMemoryError,
137+ OverflowError, StackOverflowError, SegmentationFault, UndefRefError, UndefVarError,
138+ TypeError,
138139 # AST representation
139140 Expr, GotoNode, LabelNode, LineNumberNode, QuoteNode,
140141 GlobalRef, NewvarNode, SSAValue, Slot, SlotNumber, TypedSlot,
206207struct DivideError <: Exception end
207208struct DomainError <: Exception end
208209struct OverflowError <: Exception end
209- struct InexactError <: Exception end
210210struct OutOfMemoryError <: Exception end
211211struct ReadOnlyMemoryError<: Exception end
212212struct SegmentationFault <: Exception end
@@ -222,6 +222,13 @@ mutable struct TypeError <: Exception
222222 expected:: Type
223223 got
224224end
225+ struct InexactError <: Exception
226+ func:: Symbol
227+ T:: Type
228+ val
229+
230+ InexactError (f:: Symbol , T:: ANY , val:: ANY ) = (@_noinline_meta ; new (f, T, val))
231+ end
225232
226233abstract type DirectIndexString <: AbstractString end
227234
0 commit comments