Menu

Defining Exceptions for methods in Model

Help
Paul
2006-06-21
2013-04-29
  • Paul

    Paul - 2006-06-21

    I am wondering if it is possible when describing a class in the "model.uml" format that as part of the definition of the method you can define what exceptions are thrown by the method for example:

    + <class> Application
    <operations>
    + DoSomething(): Boolean throws ApplicationException;
    <endclass>

     
    • Jos Warmer

      Jos Warmer - 2006-08-19

      You cannot di this currently.  If you want to add this you need to:
      - chnage the .uml parser to accept a syntax for exceptions
      - change the octopus UML metamodel to enable it to store exceptions
      - change the code generation to generate exception statements

      Jos

       

Log in to post a comment.