Throw an exception if the value is not within bounds.
| 53 | |
| 54 | // Throw an exception if the value is not within bounds. |
| 55 | void FloatNodeImpl::validateValue() const |
| 56 | { |
| 57 | if ( value_ < minimum_ || value_ > maximum_ ) |
| 58 | { |
| 59 | throw E57_EXCEPTION2( ErrorValueOutOfBounds, "this->pathName=" + this->pathName() + |
| 60 | " value=" + toString( value_ ) + |
| 61 | " minimum=" + toString( minimum_ ) + |
| 62 | " maximum=" + toString( maximum_ ) ); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | bool FloatNodeImpl::isTypeEquivalent( NodeImplSharedPtr ni ) |
| 67 | { |
no test coverage detected