1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:47:35 +00:00

WebDriver: Support "data" field in error responses

This commit is contained in:
Linus Groh 2022-11-02 21:56:33 +00:00
parent 747ba2a88f
commit 6e1131e6de
3 changed files with 11 additions and 6 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/JsonValue.h>
#include <AK/String.h>
namespace WebDriver {
@ -48,8 +49,9 @@ struct WebDriverError {
unsigned http_status;
String error;
String message;
Optional<JsonValue> data;
static WebDriverError from_code(ErrorCode, String message);
static WebDriverError from_code(ErrorCode, String message, Optional<JsonValue> data = {});
};
}