summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/invalid/idl/raises.widl
blob: ff65522f2b33557e523686eb6332e13a7fd4a079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// getraises and setraises are not longer valid Web IDL
interface Person {

  // An attribute that can raise an exception if it is set to an invalid value.
  attribute DOMString name setraises (InvalidName);

  // An attribute whose value cannot be assigned to, and which can raise an
  // exception some circumstances.
  readonly attribute DOMString petName getraises (NoSuchPet);
};

exception SomeException {
};

interface ExceptionThrower {
  // This attribute always throws a SomeException and never returns a value.
  attribute long valueOf getraises(SomeException);
};