1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.mina.core.write; 21 22 import java.util.Collection; 23 24 /** 25 * An exception which is thrown when one or more write requests resulted 26 * in no actual write operation. 27 * 28 * @author <a href="http://mina.apache.org">Apache MINA Project</a> 29 */ 30 public class NothingWrittenException extends WriteException { 31 32 private static final long serialVersionUID = -6331979307737691005L; 33 34 /** 35 * Create a new NothingWrittenException instance 36 * 37 * @param requests The {@link WriteRequest}s that haven't been written 38 * @param message The error message 39 * @param cause The original exception 40 */ 41 public NothingWrittenException(Collection<WriteRequest> requests, String message, Throwable cause) { 42 super(requests, message, cause); 43 } 44 45 /** 46 * Create a new NothingWrittenException instance 47 * 48 * @param requests The {@link WriteRequest}s that haven't been written 49 * @param message The error message 50 */ 51 public NothingWrittenException(Collection<WriteRequest> requests, String message) { 52 super(requests, message); 53 } 54 55 /** 56 * Create a new NothingWrittenException instance 57 * 58 * @param requests The {@link WriteRequest} that haven't been written 59 * @param cause The original exception 60 */ 61 public NothingWrittenException(Collection<WriteRequest> requests, Throwable cause) { 62 super(requests, cause); 63 } 64 65 /** 66 * Create a new NothingWrittenException instance 67 * 68 * @param requests The {@link WriteRequest} that haven't been written 69 */ 70 public NothingWrittenException(Collection<WriteRequest> requests) { 71 super(requests); 72 } 73 74 /** 75 * Create a new NothingWrittenException instance 76 * 77 * @param request The {@link WriteRequest} that hasn't been written 78 * @param message The error message 79 * @param cause The original exception 80 */ 81 public NothingWrittenException(WriteRequest request, String message, Throwable cause) { 82 super(request, message, cause); 83 } 84 85 /** 86 * Create a new NothingWrittenException instance 87 * 88 * @param request The {@link WriteRequest} that hasn't been written 89 * @param message The error message 90 */ 91 public NothingWrittenException(WriteRequest request, String message) { 92 super(request, message); 93 } 94 95 /** 96 * Create a new NothingWrittenException instance 97 * 98 * @param request The {@link WriteRequest} that hasn't been written 99 * @param cause The original exception 100 */ 101 public NothingWrittenException(WriteRequest request, Throwable cause) { 102 super(request, cause); 103 } 104 105 /** 106 * Create a new NothingWrittenException instance 107 * 108 * @param request The {@link WriteRequest} that hasn't been written 109 */ 110 public NothingWrittenException(WriteRequest request) { 111 super(request); 112 } 113 }