1   package com.trendmicro.grid.acl.l0;
2   
3   import javax.xml.bind.annotation.XmlType;
4   import javax.xml.ws.WebFault;
5   
6   /**
7    * Defines a generic fault for methods that store something and may fail on this.
8    *
9    * @author juergen_kellerer, 2010-05-18
10   * @version 1.0
11   */
12  @XmlType(namespace = Level0Constants.NAMESPACE)
13  @WebFault(targetNamespace = Level0Constants.NAMESPACE)
14  public class StorageFailedException extends WebException {
15  
16  	private static final long serialVersionUID = 5579002349259829732L;
17  
18  	public StorageFailedException() {
19  	}
20  
21  	public StorageFailedException(String message) {
22  		super(message);
23  	}
24  
25  	public StorageFailedException(int elementNumber, Throwable cause) {
26  		super("STOR01", "Failed storing the element number '" + elementNumber +
27  				"' , will not continue storing further elements in the current service invocation.");
28  		initCause(cause);
29  	}
30  }