add method to throw a namespaced exception.