digraph g {
    ea [label="ExceptionA e"];
    eb [label="ExceptionB e"];
    eb1[label="ExceptionB1 e"];
    eb2[label="ExceptionB2 e"];
    e  [label="Exception e"];
    eb2 -> ea -> eb1 -> eb -> e;

    EA  [label="ExceptionA e"];
    EB  [label="ExceptionB e"];
    EB1 [label="ExceptionB1 e"];
    EB2 [label="ExceptionB2 e"];
    E   [label="Exception e"];
    {EA EB} -> E;
    {EB1 EB2} -> EB;
}