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: UnreadableDataFormatException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.format.exceptions;
09:
10: import com.uwyn.rife.cmf.MimeType;
11: import java.util.Collection;
12:
13: public class UnreadableDataFormatException extends FormatException {
14: private static final long serialVersionUID = -8866969888137085698L;
15:
16: private MimeType mMimeType = null;
17: private Collection<String> mErrors = null;
18:
19: public UnreadableDataFormatException(MimeType mimeType,
20: Collection<String> errors) {
21: super (
22: "Impossible to read the data that has to be stored with the mime type '"
23: + mimeType + "'", null);
24:
25: mMimeType = mimeType;
26: mErrors = errors;
27: }
28:
29: public MimeType getMimeType() {
30: return mMimeType;
31: }
32:
33: public Collection<String> getErrors() {
34: return mErrors;
35: }
36: }
|