Skip to content

Conversation

@iamdanfox
Copy link
Contributor

@iamdanfox iamdanfox commented Sep 4, 2018

This adds

  • RemoteException#asConjure
  • SerializableError#asConjure
  • ErrorType#asConjure
  • ErrorType.Code#asConjure

@iamdanfox iamdanfox requested a review from a team as a code owner September 4, 2018 15:55
.isEqualTo("{\"errorCode\":\"code\",\"errorName\":\"name\",\"errorInstanceId\":\"\",\"parameters\":{},"
+ "\"exceptionClass\":\"code\",\"message\":\"name\"}");
.isEqualTo(
"{\"errorCode\":\"code\",\"errorName\":\"name\",\"errorInstanceId\":\"\",\"parameters\":{}}");
Copy link
Contributor

@qinfchen qinfchen Sep 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be a break, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test just captures exhaustive behaviour, but I don't think this is a real use case. In practise, as long as you can deserialize both the old remoting2 and newer remoting3 JSON, I think it's fine.

@iamdanfox iamdanfox merged commit 9da14c9 into develop Sep 5, 2018
@iamdanfox iamdanfox deleted the more-as-conjure-methods branch September 5, 2018 14:35
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.

4 participants