Sentence:  If the file is read-only, the method <WSD>throws</WSD> an invalid-operation exception. 
Meaning of the word marked with <WSD> tags:  To send (an error) to an exception-handling mechanism in order to interrupt normal processing.