You could use org.openqa.selenium.remote.JsonException here