01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: MultipartInvalidBoundaryException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class MultipartInvalidBoundaryException extends
11: MultipartRequestException {
12: private static final long serialVersionUID = -4310903799969602620L;
13:
14: private String mBoundary = null;
15: private String mLine = null;
16:
17: public MultipartInvalidBoundaryException(String boundary,
18: String line) {
19: super ("The boundary '" + boundary
20: + "' wasn't found at the beginning of line '" + line
21: + "'.");
22:
23: mBoundary = boundary;
24: mLine = line;
25: }
26:
27: public String getBoundary() {
28: return mBoundary;
29: }
30:
31: public String getLine() {
32: return mLine;
33: }
34: }
|