title: How do I declare that a computed property 'throws' in Swift?
body: <pre><code>class SomeClass {
    var someProperty: Int {
      throw Err("SNAFU")
    }
  }
  </code></pre>
  
  <p>For code like the above, the swift binary complains 'error is not handled because the enclosing function is not declared 'throws'.</p>
  
  <p>How do I declare that 'someProperty' 'throws' in the above?</p>
  
  <pre><code>class SomeClass {
    var someProperty throws: Int {
    }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class SomeClass {
    var someProperty: throws Int {
    }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class SomeClass {
    var someProperty: Int throws {
    }
  }
  </code></pre>
  
  <p>don't seem to work.</p>