File tree Expand file tree Collapse file tree 5 files changed +32
-15
lines changed
java/src/org/openqa/selenium Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium ;
19
19
20
+ import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
22
+
20
23
/**
21
24
* Thrown when attempting to add a cookie under a different domain than the current URL.
22
25
*
23
26
* @see org.openqa.selenium.WebDriver.Options#addCookie(Cookie)
24
27
*/
28
+ @ NullMarked
25
29
public class InvalidCookieDomainException extends WebDriverException {
26
30
public InvalidCookieDomainException () {}
27
31
28
- public InvalidCookieDomainException (String message ) {
32
+ public InvalidCookieDomainException (@ Nullable String message ) {
29
33
super (message );
30
34
}
31
35
32
- public InvalidCookieDomainException (Throwable cause ) {
36
+ public InvalidCookieDomainException (@ Nullable Throwable cause ) {
33
37
super (cause );
34
38
}
35
39
36
- public InvalidCookieDomainException (String message , Throwable cause ) {
40
+ public InvalidCookieDomainException (@ Nullable String message , @ Nullable Throwable cause ) {
37
41
super (message , cause );
38
42
}
39
43
}
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium ;
19
19
20
+ import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
22
+
20
23
/**
21
24
* Thrown when a driver fails to set a cookie.
22
25
*
23
26
* @see org.openqa.selenium.WebDriver.Options#addCookie(Cookie)
24
27
*/
28
+ @ NullMarked
25
29
public class UnableToSetCookieException extends WebDriverException {
26
30
public UnableToSetCookieException () {}
27
31
28
- public UnableToSetCookieException (String message ) {
32
+ public UnableToSetCookieException (@ Nullable String message ) {
29
33
super (message );
30
34
}
31
35
32
- public UnableToSetCookieException (Throwable cause ) {
36
+ public UnableToSetCookieException (@ Nullable Throwable cause ) {
33
37
super (cause );
34
38
}
35
39
36
- public UnableToSetCookieException (String message , Throwable cause ) {
40
+ public UnableToSetCookieException (@ Nullable String message , @ Nullable Throwable cause ) {
37
41
super (message , cause );
38
42
}
39
43
}
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .devtools ;
19
19
20
+ import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
20
22
import org .openqa .selenium .WebDriverException ;
21
23
24
+ @ NullMarked
22
25
public class DevToolsException extends WebDriverException {
23
26
24
- public DevToolsException (Throwable cause ) {
27
+ public DevToolsException (@ Nullable Throwable cause ) {
25
28
this (cause .getMessage (), cause );
26
29
}
27
30
28
- public DevToolsException (String message ) {
31
+ public DevToolsException (@ Nullable String message ) {
29
32
this (message , null );
30
33
}
31
34
32
- public DevToolsException (String message , Throwable cause ) {
35
+ public DevToolsException (@ Nullable String message , @ Nullable Throwable cause ) {
33
36
super (message , cause );
34
37
addInfo (WebDriverException .DRIVER_INFO , "DevTools Connection" );
35
38
}
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .json ;
19
19
20
+ import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
20
22
import org .openqa .selenium .WebDriverException ;
21
23
24
+ @ NullMarked
22
25
public class JsonException extends WebDriverException {
23
26
24
- public JsonException (String message ) {
27
+ public JsonException (@ Nullable String message ) {
25
28
super (message );
26
29
}
27
30
28
- public JsonException (Throwable cause ) {
31
+ public JsonException (@ Nullable Throwable cause ) {
29
32
super (cause );
30
33
}
31
34
32
- public JsonException (String message , Throwable cause ) {
35
+ public JsonException (@ Nullable String message , @ Nullable Throwable cause ) {
33
36
super (message , cause );
34
37
}
35
38
}
Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .remote ;
19
19
20
+ import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
20
22
import org .openqa .selenium .WebDriverException ;
21
23
24
+ @ NullMarked
22
25
public class ScreenshotException extends WebDriverException {
23
26
24
- public ScreenshotException (String message ) {
27
+ public ScreenshotException (@ Nullable String message ) {
25
28
super (message );
26
29
}
27
30
28
- public ScreenshotException (Throwable cause ) {
31
+ public ScreenshotException (@ Nullable Throwable cause ) {
29
32
super (cause );
30
33
}
31
34
32
- public ScreenshotException (String message , Throwable cause ) {
35
+ public ScreenshotException (@ Nullable String message , @ Nullable Throwable cause ) {
33
36
super (message , cause );
34
37
}
35
38
}
You can’t perform that action at this time.
0 commit comments