When looking at the constructor for @throws it takes one argument to Class[_] . Given this, you cannot use array notation to represent multiple classes. Thus, an alternative to add annotations several times, one for each supported exception:
@throws( classOf[ExceptionA] ) @throws( classOf[ExceptionB] )
source share