Skip to Content.
Sympa Menu

mace-opensaml-users - Suggestion for SAMLException

Subject: OpenSAML user discussion

List archive

Suggestion for SAMLException


Chronological Thread 
  • From: "Cortezzo, Jason" <>
  • To:
  • Subject: Suggestion for SAMLException
  • Date: Fri, 18 Mar 2005 13:58:23 -0500

May I recommend changing this constructor of org.opensaml.SAMLException
from....

public SAMLException(String msg, Exception e) {
super(msg);
this.msg = msg;
this.e = e;
}

...to...

public SAMLException(String msg, Exception e) {
super(msg, e); // Nest the exceptions
this.msg = msg;
this.e = e;
}


It will take advantage of the "chained exception facility". This way if you
do a stacktrace on the SAMLException, you get the stacktrace of the cause as
well.


-Jason Cortezzo




Archive powered by MHonArc 2.6.16.

Top of Page