1 14 15 package com.sun.facelets.tag; 16 17 import com.sun.facelets.FaceletException; 18 19 25 public final class TagAttributeException extends FaceletException { 26 27 30 private static final long serialVersionUID = 1L; 31 32 public TagAttributeException(TagAttribute attr) { 33 super(attr.toString()); 34 } 35 36 public TagAttributeException(TagAttribute attr, String message) { 37 super(attr + " " + message); 38 } 39 40 public TagAttributeException(TagAttribute attr, Throwable cause) { 41 super(attr + " " + cause.getMessage(), cause); 42 } 43 44 public TagAttributeException(TagAttribute attr, String message, 45 Throwable cause) { 46 super(attr + " " + message, cause); 47 } 48 49 52 public TagAttributeException(Tag tag, TagAttribute attr) { 53 super(print(tag, attr)); 54 } 55 56 private final static String print(Tag tag, TagAttribute attr) { 57 return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() 58 + "=\"" + attr.getValue() + "\">"; 59 } 60 61 64 public TagAttributeException(Tag tag, TagAttribute attr, String message) { 65 super(print(tag, attr) + " " + message); 66 } 67 68 71 public TagAttributeException(Tag tag, TagAttribute attr, Throwable cause) { 72 super(print(tag, attr) + " " + cause.getMessage(), cause); 73 } 74 75 79 public TagAttributeException(Tag tag, TagAttribute attr, String message, 80 Throwable cause) { 81 super(print(tag, attr) + " " + message, cause); 82 } 83 84 } 85 | Popular Tags |