001package jmri.util.swing;
002
003/**
004 * Extends ExceptionContext class for exceptions that are not expected, and
005 * therefore have no suggestions for the user.
006 *
007 * @author Gregory Madsen Copyright (C) 2012
008 *
009 */
010public class UnexpectedExceptionContext extends ExceptionContext {
011
012    @Override
013    public String getTitle() {
014        return Bundle.getMessage("UnexpectedExceptionOperationTitle",super.getTitle());
015    }
016
017    public UnexpectedExceptionContext(@javax.annotation.Nonnull Throwable ex, String operation) {
018        super(ex, operation, Bundle.getMessage("UnexpectedExceptionOperationHint"));
019        this.prefaceString = Bundle.getMessage("UnexpectedExceptionOperationPreface");
020    }
021
022}