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:
parent
747ba2a88f
commit
6e1131e6de
3 changed files with 11 additions and 6 deletions
|
@ -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 = {});
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue