Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Exception handling is hostile to developers #3

Description

@OwlManAtt

When EAAL gets an error from the EVE API (not a transport error, mind - a proper error code from the EVE API), it automatically spawns a class called EveAPIExceptionXXX, where XXX is a numeric code from the API.

This is extremely undesirable for two reasons:

  • I can't handle specific errors since their exception class isn't defined until the exception actually occurs. I want to handle a small subset (relating to bad API keys) differently from the rest (and mark the keys as proved-invalid).
  • There isn't a clean way to log the numeric code -- you either get the whole class name, or do some string mogging on #class.to_s.

The exceptions caused by transport issues suffer a similar problem w.r.t the error codes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions