Converting errors into exceptions
Documentation and getter added