Fix bug for exception helper. Adding documentation