1 /*======================================================================*
2 * Copyright (c) 2010, Frank Maritato All rights reserved. *
4 * Licensed under the New BSD License (the "License"); you may not use *
5 * this file except in compliance with the License. Unless required *
6 * by applicable law or agreed to in writing, software distributed *
7 * under the License is distributed on an "AS IS" BASIS, WITHOUT *
8 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
9 * See the License for the specific language governing permissions and *
10 * limitations under the License. See accompanying LICENSE file. *
11 *======================================================================*/
18 public class AttributeSizeException
extends EventSystemException
{
20 public AttributeSizeException(Throwable e
) {
24 public AttributeSizeException(String s
) {
28 public AttributeSizeException(String s
, Throwable e
) {
32 public AttributeSizeException(String attribute
, int size
, int expectedSize
) {
33 super("Attribute "+attribute
+" size is incorrect. Expected "+expectedSize
+" but was "+size
);
36 public AttributeSizeException(String attribute
, int size
, int expectedSize
, Throwable e
) {
37 super("Attribute "+attribute
+" size is incorrect. Expected "+expectedSize
+" but was "+size
, e
);