rayoptics.raytr.traceerror module

Support for ray trace exception handling

exception TraceError[source]

Bases: Exception

Exception raised when ray tracing a model

exception TraceMissedSurfaceError(ifc=None, prev_seg=None)[source]

Bases: TraceError

Exception raised when ray misses an interface

exception TraceTIRError(inc_dir, normal, prev_indx, follow_indx)[source]

Bases: TraceError

Exception raised when ray TIRs at an interface

exception TraceEvanescentRayError(ifc, int_pt, inc_dir, normal, prev_indx, follow_indx)[source]

Bases: TraceError

Exception raised when ray diffracts evanescently at an interface

exception TraceRayBlockedError(ifc, int_pt)[source]

Bases: TraceError

Exception raised when ray is blocked by an aperture on an interface