Problem with net.sf,json.JSONException

Help
2012-07-19
2013-04-29
  • Daniele Nardi
    Daniele Nardi
    2012-07-19

    public static net.sf.json.JSONObject getAsJSONObject() throws net.sf.json.JSONException {

    This line is the declaration of a member function on my project: NetBeans highlights it with the error

    Incompatible types
    Required: java.lang.Throwable
    Found: net.sf.json.JSONException

    Why does it happens?