Skip to content

Commit a9ec02f

Browse files
mihaylovadriaanm
mihaylov
authored andcommitted
Mapped Java exceptions via scala.compat.Platform
1 parent 6d1399e commit a9ec02f

File tree

10 files changed

+25
-5
lines changed

10 files changed

+25
-5
lines changed

src/library/scala/xml/Comment.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
package scala.xml
1313

1414
import compat.StringBuilder
15+
import compat.Platform.IllegalArgumentException
1516

1617
/** an XML node for comments.
1718
*

src/library/scala/xml/Elem.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
package scala.xml;
1313

1414

15+
import compat.Platform.IllegalArgumentException
16+
1517
/** The case class <code>Elem</code> extends the Node class,
1618
* providing an immutable data object representing an XML element.
1719
*

src/library/scala/xml/Group.scala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
package scala.xml
1313

14+
1415
import compat.StringBuilder
16+
import compat.Platform.UnsupportedOperationException
1517

1618
/** A hack to group XML nodes in one node for output.
1719
*
@@ -33,31 +35,31 @@ case class Group(val nodes: Seq[Node]) extends Node {
3335
}
3436

3537
/**
36-
* @throws UnsupportedOperationException (always)
38+
* @throws scala.compat.Platform.UnsupportedOperationException (always)
3739
*/
3840
final def label =
3941
throw new UnsupportedOperationException("class Group does not support method 'label'")
4042

4143
/**
42-
* @throws UnsupportedOperationException (always)
44+
* @throws scala.compat.Platform.UnsupportedOperationException (always)
4345
*/
4446
final override def attributes =
4547
throw new UnsupportedOperationException("class Group does not support method 'attributes'")
4648

4749
/**
48-
* @throws UnsupportedOperationException (always)
50+
* @throws scala.compat.Platform.UnsupportedOperationException (always)
4951
*/
5052
final override def namespace =
5153
throw new UnsupportedOperationException("class Group does not support method 'namespace'")
5254

5355
/**
54-
* @throws UnsupportedOperationException (always)
56+
* @throws scala.compat.Platform.UnsupportedOperationException (always)
5557
*/
5658
final override def child =
5759
throw new UnsupportedOperationException("class Group does not support method 'child'")
5860

5961
/**
60-
* @throws UnsupportedOperationException (always)
62+
* @throws scala.compat.Platform.UnsupportedOperationException (always)
6163
*/
6264
def toString(sb: StringBuilder) =
6365
throw new UnsupportedOperationException("class Group does not support method toString(StringBuilder)")

src/library/scala/xml/NamespaceBinding.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
package scala.xml
1313

14+
1415
import compat.StringBuilder
16+
import compat.Platform.IllegalArgumentException
1517

1618
/** The class <code>NamespaceBinding</code> represents namespace bindings
1719
* and scopes. The binding for the default namespace is treated as a null

src/library/scala/xml/PrefixedAttribute.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
package scala.xml
1313

1414
import compat.StringBuilder
15+
import compat.Platform.UnsupportedOperationException
1516

1617
/** prefixed attributes always have a non-null namespace.
1718
* @param value the attribute value, which may not be null

src/library/scala/xml/ProcInstr.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
package scala.xml;
1313

14+
1415
import compat.StringBuilder
16+
import compat.Platform.IllegalArgumentException
1517

1618
/** an XML node for processing instructions (PI)
1719
*

src/library/scala/xml/dtd/Decl.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
package scala.xml.dtd;
1313

14+
1415
import compat.StringBuilder
16+
import compat.Platform.IllegalArgumentException
1517

1618
abstract class Decl;
1719

src/library/scala/xml/dtd/DocType.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
package scala.xml.dtd;
1313

1414

15+
import compat.Platform.IllegalArgumentException
16+
1517
/** an XML node for document type declaration
1618
*
1719
* @author Burak Emir

src/library/scala/xml/dtd/ExternalID.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
package scala.xml.dtd;
1313

14+
1415
import compat.StringBuilder
16+
import compat.Platform.IllegalArgumentException
1517

1618
/** an ExternalIDs - either PublicID or SystemID
1719
*

src/library/scala/xml/transform/BasicTransformer.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88

99
// $Id$
1010

11+
1112
package scala.xml.transform
1213

14+
15+
import compat.Platform.UnsupportedOperationException
16+
1317
/** A class for XML transformations.
1418
*
1519
* @author Burak Emir

0 commit comments

Comments
 (0)