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

Fleshed out PostgresqlMessage, introduced PostgresqlServerFailure. #22

Merged
merged 1 commit into from
Mar 22, 2016

Conversation

penland365
Copy link
Contributor

Following an initial discussion #21 on preferred Error Handling, the early implementation of PostgresqlError was replaced by PostgresqlMessage. Following the example set in Postgresql source code, all PostgresqlMessage were furthur classified into one of Success / Warning / Error / Unknown. A new failure type was introduced, PostgresqlServerFailure, to contain any ErrorMessage sent
by a Postgresql Server.

This implementation allows us to much more easily handle NoticeResponses, and allows us to have a more nuanced process ( yet to be implemented ) around connection handling.

Following an initial discussion https://github.com/penland365/roc/issues/21
on preferred Error Handling, the early implementation of PostgresqlError
was replaced by PostgresqlMessage. Following the example set in
Postgresql source code, all PostgresqlMessage were furthur classified
into one of Success / Warning / Error / Unknown. A new failure type was
introduced, PostgresqlServerFailure, to contain any ErrorMessage sent
by a Postgresql Server.

This implementation allows us to much more easily handle
NoticeResponses, and allows us to have a more nuanced process ( yet to
be implemented ) around connection handling.
@codecov-io
Copy link

Current coverage is 61.82%

Merging #22 into master will increase coverage by +0.82% as of 7719d28

@@            master     #22   diff @@
======================================
  Files           17      17       
  Stmts          618     634    +16
  Branches        20      20       
  Methods          0       0       
======================================
+ Hit            377     392    +15
  Partial          0       0       
- Missed         241     242     +1

Review entire Coverage Diff as of 7719d28

Powered by Codecov. Updated on successful CI builds.

penland365 added a commit that referenced this pull request Mar 22, 2016
Fleshed out PostgresqlMessage, introduced PostgresqlServerFailure.
@penland365 penland365 merged commit b9329a4 into master Mar 22, 2016
@penland365 penland365 deleted the error-to-message branch March 22, 2016 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants