Mercurial Hosting > luan
diff src/goodjava/xml/XmlElement.java @ 1810:3c43b07e12b7
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 May 2024 22:00:42 -0600 |
parents | a55a891a4f67 |
children | 9daae8cf4bef |
line wrap: on
line diff
--- a/src/goodjava/xml/XmlElement.java Sun May 12 17:15:33 2024 -0600 +++ b/src/goodjava/xml/XmlElement.java Sun May 12 22:00:42 2024 -0600 @@ -29,15 +29,15 @@ public void setContent(String content) { if( content == null ) - throw new IllegalArgumentException("content can't be null"); + throw new IllegalArgumentException("content of '"+name+"' can't be null"); this.content = content; } public void setContent(XmlElement[] content) { if( content == null ) - throw new IllegalArgumentException("content can't be null"); + throw new IllegalArgumentException("content of '"+name+"' can't be null"); if( content.length == 0 ) - throw new IllegalArgumentException("content can't be empty"); + throw new IllegalArgumentException("content of '"+name+"' can't be empty"); this.content = content; for( XmlElement el : content ) { el.parent = this;