@Test
public void getErrorMessageTwoLevel() {

    Throwable t1 = new AriaddnaException("1 уровень");
    Throwable t2 = new AriaddnaException("2 уровень", t1);
    try {
        throw t2;
    } catch (AriaddnaException e) {
        System.out.println(e.getErrorMessage());
    } catch (Throwable throwable) {
        throwable.printStackTrace();
    }
}