@throws annotation for java api