Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-117

Method API should have the ability to add throws declarations

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha4
    • None
    • None
    • None

      There is no way to add throws declarations to methods using the builder interface now. The following demonstrates how this should work.

      .addMethod()
         .setName("main")
         .setStatic()
         .setPublic()
         .setReturnTypeVoid()
         .addThrows(MyException.class)
         .addThrows(MyOtherException.class)
      

            lincolnthree Lincoln Baxter III (Inactive)
            pbakker_jira Paul Bakker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: