equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package org.w3c.dom.svg; |
|
18 |
|
19 |
|
20 /** |
|
21 * An exception thrown for SVG-specific errors, such as noninvertable matrix in {@link org.w3c.dom.svg.SVGMatrix#inverse inverse}. |
|
22 */ |
|
23 public class SVGException extends RuntimeException |
|
24 { |
|
25 /** |
|
26 * An integer indicating the type of error generated. |
|
27 */ |
|
28 public short code; |
|
29 |
|
30 /** |
|
31 * Constructs a SVGException with a detailed message. |
|
32 * |
|
33 * @param code the exception's error code. |
|
34 * @param message the exception's descriptive message. |
|
35 */ |
|
36 public SVGException(short code, String message) |
|
37 { |
|
38 super(message); |
|
39 this.code = code; |
|
40 } |
|
41 |
|
42 |
|
43 /** |
|
44 * Value passed to an SVG-specific method is invalid, such as out of range color component in {@link org.w3c.dom.svg.SVGSVGElement#createSVGRGBColor createSVGRGBColor}. |
|
45 */ |
|
46 public static final short SVG_INVALID_VALUE_ERR = 1; |
|
47 |
|
48 /** |
|
49 * Matrix that has a determinant equal to zero, and therefore not invertable. |
|
50 */ |
|
51 public static final short SVG_MATRIX_NOT_INVERTABLE = 2; |
|
52 |
|
53 } |