1 12 package org.displaytag.exception; 13 14 import org.apache.commons.lang.ArrayUtils; 15 import org.displaytag.Messages; 16 17 18 24 public class MissingAttributeException extends BaseNestableJspTagException 25 { 26 27 30 private static final long serialVersionUID = 899149338534L; 31 32 35 private final String [] attributes; 36 37 42 public MissingAttributeException(Class source, String [] attributeNames) 43 { 44 super(source, Messages.getString("MissingAttributeException.msg", new Object []{ArrayUtils.toString(attributeNames)})); 46 47 this.attributes = (String []) ArrayUtils.clone(attributeNames); 49 } 50 51 56 public SeverityEnum getSeverity() 57 { 58 return SeverityEnum.ERROR; 59 } 60 61 65 public String [] getAttributeNames() 66 { 67 return (String []) ArrayUtils.clone(this.attributes); 68 } 69 70 } | Popular Tags |