001package jmri.configurexml;
002
003/**
004 * Memo class to remember errors encountered during loading
005 *
006 * @author Bob Jacobsen Copyright (c) 2010
007 */
008public class ErrorMemo {
009
010    public ErrorMemo(
011            XmlAdapter adapter,
012            String operation,
013            String description,
014            String systemName,
015            String userName,
016            Throwable exception) {
017        this.adapter = adapter;
018        this.operation = operation;
019        this.description = description;
020        this.systemName = systemName;
021        this.userName = userName;
022        this.exception = exception;
023    }
024
025    public ErrorMemo(
026            XmlAdapter adapter,
027            String operation,
028            String description,
029            String systemName,
030            String userName,
031            Throwable exception,
032            String title) {
033        this(adapter, operation, description, systemName, userName, exception);
034        this.title = title;
035    }
036
037    public XmlAdapter adapter;
038    public String operation;
039    public String description;
040    public String systemName;
041    public String userName;
042    public Throwable exception;
043    public String title = "loading";
044}