Annotation Type Throws

public @interface Throws

The Throws annotation specifies the classes that will be thrown when one ore more arguments are not valid. This is useful to show the runtime exceptions which can possibly be thrown by a method.

Required Element Summary
 Class<? extends Throwable>[] value

Element Detail


public abstract Class<? extends Throwable>[] value
the classes that can be thrown

Copyright © 2012-2013. All Rights Reserved.