summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/TerminateWizardException.java
blob: 503a2866cfeed44183ebd3f6f3af44d32aa8ae6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.sun.star.wizards.common;

import com.sun.star.wizards.common.Resource;
import com.sun.star.lang.XMultiServiceFactory;

public class TerminateWizardException extends Exception {

    public TerminateWizardException(XMultiServiceFactory xMSF) {
        Resource oResource = new Resource(xMSF, "AutoPilot", "dbw");
        String sErrorMessage = oResource.getResText(1006);
        SystemDialog.showMessageBox(xMSF, "ErrorBox", com.sun.star.awt.VclWindowPeerAttribute.OK, sErrorMessage);
        printStackTrace(System.out);
    }

}