Home | History | Annotate | Download | only in svg

Lines Matching defs:exceptionState

34 #include "bindings/v8/ExceptionState.h"
50 void SVGAngleTearOff::setValue(float value, ExceptionState& exceptionState)
53 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
61 void SVGAngleTearOff::setValueInSpecifiedUnits(float value, ExceptionState& exceptionState)
64 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
72 void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState)
75 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
80 exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ").");
88 void SVGAngleTearOff::convertToSpecifiedUnits(unsigned short unitType, ExceptionState& exceptionState)
91 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
96 exceptionState.throwDOMException(NotSupportedError, "Cannot convert to unknown or invalid units (" + String::number(unitType) + ").");
100 target()->convertToSpecifiedUnits(static_cast<SVGAngle::SVGAngleType>(unitType), exceptionState);
101 if (!exceptionState.hadException())
105 void SVGAngleTearOff::setValueAsString(const String& value, ExceptionState& exceptionState)
108 exceptionState.throwDOMException(NoModificationAllowedError, "The attribute is read-only.");
114 target()->setValueAsString(value, exceptionState);
116 if (!exceptionState.hadException() && !hasExposedAngleUnit()) {
118 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + value + "') is invalid.");