1 16 package org.apache.commons.attributes; 17 18 22 public class RepositoryError extends Error { 23 24 private final Throwable nested; 25 26 public RepositoryError () { 27 this (null, null); 28 } 29 30 public RepositoryError (String message) { 31 this (message, null); 32 } 33 34 public RepositoryError (Throwable nested) { 35 this (nested.toString(), nested); 36 } 37 38 public RepositoryError (String message, Throwable nested) { 39 super (message); 40 this.nested = nested; 41 } 42 43 public Throwable getNested () { 44 return nested; 45 } 46 } | Popular Tags |