summaryrefslogtreecommitdiffstats
path: root/core/java/android/util/Property.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/util/Property.java')
-rw-r--r--core/java/android/util/Property.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/util/Property.java b/core/java/android/util/Property.java
index 458e4c3..146db80 100644
--- a/core/java/android/util/Property.java
+++ b/core/java/android/util/Property.java
@@ -78,11 +78,11 @@ public abstract class Property<T, V> {
/**
* Sets the value on <code>object</code> which this property represents. If the method is unable
- * to set the value on the target object, it will throw a {@link NoSuchPropertyException}
+ * to set the value on the target object it will throw an {@link UnsupportedOperationException}
* exception.
*/
public void set(T object, V value) {
- throw new NoSuchPropertyException("Property is read-only; set() is not implemented");
+ throw new UnsupportedOperationException("Property " + getName() +" is read-only");
}
/**