Avoid undefined Error::Depth warning in exceptions