KHTML
SVGException.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SVGException_h
00023 #define SVGException_h
00024
00025 #if ENABLE(SVG)
00026
00027
00028 #include "wtf/RefCounted.h"
00029
00030 namespace DOM {
00031
00032 class SVGException : public RefCounted<SVGException> {
00033 public:
00034
00035
00036
00037
00038
00039 static const int SVGExceptionOffset = 300;
00040 static const int SVGExceptionMax = 399;
00041
00042 enum SVGExceptionCode {
00043 SVG_WRONG_TYPE_ERR = SVGExceptionOffset,
00044 SVG_INVALID_VALUE_ERR = SVGExceptionOffset + 1,
00045 SVG_MATRIX_NOT_INVERTABLE = SVGExceptionOffset + 2
00046 };
00047
00048
00049 public:
00050 unsigned short code() const { return m_code; }
00051 DOM::DOMString name() const { return m_name; }
00052 DOM::DOMString message() const { return m_message; }
00053
00054 DOM::DOMString toString() const {
00055
00056 return DOMString();
00057 }
00058
00059 private:
00060 unsigned short m_code;
00061 DOM::DOMString m_name;
00062 DOM::DOMString m_message;
00063 };
00064 }
00065
00066 namespace WebCore {
00067 typedef DOM::SVGException SVGException;
00068 }
00069
00070 #endif // ENABLE(SVG)
00071
00072 #endif // SVGException_h