Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: new error implementation #18857

Closed
wants to merge 7 commits into from
Closed

Commits on Feb 19, 2018

  1. errors: implement new error handling

    This implements a function based system. Instead of passing in the
    error code as first argument, the error code itself is a error class.
    It already contains the correct error type, so while adding a new
    error no one has to think about the error type anymore. In case a
    single error code has more than one error type, the error class has
    properties for the non default error types. Those can be used as
    fallback.
    
    This prevents typos, makes the implementation easier and it is less
    verbose when writing the code for a new error.
    
    The implementation itself does not interfere with the old
    implementation. So the old and the new system can co-exist and it is
    possible to slowly migrate the old ones to the new system.
    BridgeAR committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    690d6f5 View commit details
    Browse the repository at this point in the history
  2. errors: update all internal errors

    This updates all internal errors to the new error type. While doing
    so it removes unused errors.
    
    A few errors currently seem to have the wrong type. To identify them
    later, comments were added next to the error type.
    BridgeAR committed Feb 19, 2018
    1 Configuration menu
    Copy the full SHA
    cc0edb9 View commit details
    Browse the repository at this point in the history
  3. console: port errors to new system

    This ports the errors to the new error system.
    BridgeAR committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    a51e50d View commit details
    Browse the repository at this point in the history
  4. errors: add comments about falsy error types

    Some error types are not properly set. This adds comments which
    ones are probably falty and to what they should be set instead.
    BridgeAR committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    ae87200 View commit details
    Browse the repository at this point in the history
  5. errors: simplify sysError

    BridgeAR committed Feb 19, 2018
    Configuration menu
    Copy the full SHA
    474c498 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5ee0ffb View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2018

  1. fixup: rename

    BridgeAR committed Feb 22, 2018
    Configuration menu
    Copy the full SHA
    e0df496 View commit details
    Browse the repository at this point in the history