Replaced RuntimeErrors with properly namespaced exceptions