001 package org.nakedobjects.applib.util;
002
003 public class TitleBufferException extends RuntimeException {
004 private static final long serialVersionUID = 1L;
005 private Throwable cause;
006
007 public TitleBufferException() {
008 super();
009 }
010
011 public TitleBufferException(final String msg) {
012 super(msg);
013 }
014
015 public TitleBufferException(final Throwable cause) {
016 this(cause.getMessage());
017 this.cause = cause;
018 }
019
020 public TitleBufferException(final String msg, final Throwable cause) {
021 this(msg);
022 this.cause = cause;
023 }
024
025 @Override
026 public Throwable getCause() {
027 return cause;
028 }
029 }
030
031
032 // Copyright (c) Naked Objects Group Ltd.