1 package org.paneris.bibliomania;
2
3 import org.melati.util.MelatiRuntimeException;
4
5 public class FormParamException extends MelatiRuntimeException {
6
7
8
9 private static final long serialVersionUID = 1L;
10 public String name;
11 public String expected;
12 public Exception problem;
13
14 public FormParamException(String name, String expected, Exception problem) {
15 this.name = name;
16 this.expected = expected;
17 this.problem = problem;
18 }
19
20 public String getMessage() {
21 return "Form parameter `" + name + "': expected " + expected +
22 (subException == null ? "" : "\n" + subException.getMessage());
23 }
24 }