Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seq Diagram Drawing try catch block in UML

I have a question, how can I draw try catch block in sequence diagram in UML? Can I draw the try as the normal case and the catch as the alternative case or no?

I'm using Visio to dram the UML sequence diagrams.

like image 402
Lisa Avatar asked Nov 08 '14 21:11

Lisa


People also ask

What is sequence diagram in UML with example?

In UML diagrams, such as sequence or communication diagrams, lifelines represent the objects that participate in an interaction. For example, in a banking scenario, lifelines can represent objects such as a bank system or customer. Each instance in an interaction is represented by a lifeline.

What are objects in sequence diagram?

Object. In the UML, an object in a sequence diagram is drawn as a rectangle containing the name of the object, underlined. An object can be named in one of three ways: the object name, the object name and its class, or just the class name (anonymous object). The three ways of naming an object are shown in Figure below.


1 Answers

UML sequence diagram lacks of being able to visualize exceptions. There are "workarounds" however, please refer to:

  • Break
  • Sequence Diagrams: Questions & Answers
  • Stackoverflow answer
like image 180
Bela Vizer Avatar answered Sep 30 '22 04:09

Bela Vizer