1. 21 4月, 2017 1 次提交
  2. 21 2月, 2017 1 次提交
    • K
      Add error package and some Matrix errors (#13) · 966d3b95
      Kegsay 提交于
      Terse function names are used to make usage not stutter. For example:
      
      ```go
      err := error.Forbidden("you shall not pass")
      ```
      
      At the moment they are all the same fundamental `MatrixError` type. This will
      be bad if we ever want to `switch` based on the kind of error. I'm hoping we
      won't ever need to introspect into errors like this: ideally these errors would
      be created purely for immediately being returned in an HTTP response.
      
      `MatrixError` implements the `error` interface.
      966d3b95