File tree 1 file changed +6
-0
lines changed
src/main/scala/org/scalajs/dom/ext
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,20 @@ import org.scalajs.dom.{Blob, FormData}
16
16
* Thrown when `Ajax.get` or `Ajax.post` receives a non-20X response code.
17
17
* Contains the XMLHttpRequest that resulted in that response
18
18
*/
19
+ @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
19
20
case class AjaxException (xhr : dom.XMLHttpRequest ) extends Exception {
20
21
def isTimeout = xhr.status == 0 && xhr.readyState == 4
21
22
}
22
23
24
+ // This is just there to work around some weird warnings in Scala 3.x
25
+ @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
26
+ object AjaxException extends (dom.XMLHttpRequest => AjaxException )
27
+
23
28
/**
24
29
* Wraps an XMLHttpRequest to provide an easy one-line way of making
25
30
* an Ajax call, returning a Future.
26
31
*/
32
+ @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
27
33
object Ajax {
28
34
29
35
/**
You can’t perform that action at this time.
0 commit comments