Updated code with new base RawException namespace.