title: How throw exception with annotation?
body: <p>I have a class as follow: </p>
  
  <pre><code>public class MyClass {
     private String key;
  
     // Getter And Setter
  }
  </code></pre>
  
  <p>I want to limit <code>key</code> value(for example it can't have space char), for this I have to define as setter as follow: </p>
  
  <pre><code>public void setKey(String key)
  {
      if(key.indexOf(" ") != -1)
        throw new RuntimeException("");
  
      this.key = key;
  
  }
  </code></pre>
  
  <p>I used this setter in another class too, Is it possible to define an annotation that when setter method callded, it checked this?</p>
  
  <p>If yes, How?</p>