Improve errors for .NET client #515

Closed
davidfowl opened this Issue Jul 7, 2012 · 5 comments

Projects

None yet

3 participants

@davidfowl
Member

Throw a new error with the text from the server when something fails.

@davidfowl davidfowl was assigned Jul 7, 2012
@tlnagy
tlnagy commented Aug 2, 2012

Could this be the reason I'm seeing errors such as JsonSerializationExceptions instead of the errors that I throw on the server?

@davidfowl
Member

When are you seeing errors?

@tlnagy
tlnagy commented Aug 2, 2012

It's when I throw an exception excepting my test console application to receive a nice error telling the user what they did wrong. However, I usually receive an aggregate exception that when I flatten contains a JsonSerializationException when it's trying to serialize a null to a boolean.

@davidfowl
Member

Can you show a code sample.

@NTaylorMullen NTaylorMullen was assigned Aug 3, 2012
@NTaylorMullen NTaylorMullen added a commit that closed this issue Aug 8, 2012
@NTaylorMullen NTaylorMullen Added custom SignalR error handling capability
Fixed #515

Created an ErrorExtensions class to add a "GetError" capability to
Exceptions.  GetError returns an error of type SignalRError which
unwraps and pulls unique attributes out of a thrown exception to expose
essential pieces to errors.
b590bb0
@NTaylorMullen

Added feature label because this includes the SignalRError clss for error handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment