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

Serialisation tracer #13

Open
davidsowerby opened this issue Apr 23, 2018 · 1 comment
Open

Serialisation tracer #13

davidsowerby opened this issue Apr 23, 2018 · 1 comment

Comments

@davidsowerby
Copy link

davidsowerby commented Apr 23, 2018

Serialisation errors can be a pain to track down so I wrote this utility

If we could trap any [SerializationException]'s and run the tracer on it, it would give much better feedback on where the issue is.

Very rough code:

try{
//serialise the session
}catch(SerializationException se){
        val tracer = SerializationTracer()
        tracer.trace(session)
	throw new SerializationException(tracer.results(FAIL),se)	
}
@davidsowerby
Copy link
Author

Forgot to put a reference to the utility

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

No branches or pull requests

1 participant