1 /** 2 * LOGBack: the reliable, fast and flexible logging library for Java. 3 * 4 * Copyright (C) 1999-2005, QOS.ch, LOGBack.com 5 * 6 * This library is free software, you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public License as 8 * published by the Free Software Foundation. 9 */ 10 package ch.qos.logback.core.pattern.parser; 11 12 public class ScanException extends Exception { 13 14 private static final long serialVersionUID = -3132040414328475658L; 15 16 Throwable cause; 17 18 public ScanException(String msg) { 19 super(msg); 20 } 21 22 public ScanException(String msg, Throwable rootCause) { 23 super(msg); 24 this.cause = rootCause; 25 } 26 27 public Throwable getCause() { 28 return cause; 29 } 30 } 31