const virtual class sys::CastErr

sys::Obj
  sys::Err
    sys::CastErr

CastErr is a runtime exception raised when invalid cast is performed.

make

new make(Str msg := "", Err? cause := null)

Construct with specified error message and optional root cause.