<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello Scott, thank you for your reply!</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
How can I emit ClassifiedErrors from Java, or how can I map my Exception to ClassifiedErrors afterwards?</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
At the moment, on a failed login attempt my Java code does:</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
   <code><span></span><span class="hljs-keyword ContentPasted0">throw</span><span class="ContentPasted0">
</span><span class="hljs-keyword ContentPasted0">new</span><span class="ContentPasted0">
</span><span class="hljs-title.class ContentPasted0">FailedLoginException</span><span class="ContentPasted0">(message);</span></code></div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
Should I adapt that or is there some config file where I can map that into a ClassifiedError Event?</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<br>
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
Thank you,</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
kind regards,</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
Thomas Käfer</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
FH Campus Wien</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Cantor, Scott <cantor.2@osu.edu><br>
<b>Gesendet:</b> Dienstag, 2. Mai 2023 18:48<br>
<b>An:</b> Käfer Thomas <thomas.kaefer@fh-campuswien.ac.at>; Shib Users <users@shibboleth.net><br>
<b>Betreff:</b> Re: IDP 4.3.1 login.vm view - error messages?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">>  Since our custom error messages are transported using Exceptions, we first<br>
> process those<br>
<br>
That's something you'd really want to change, get them mapped to events and then it just works like always, save that yes, if you run another flow first and it sets a classified event, then it's going to be there.<br>
<br>
But in the aggregate, the point was, yes, that template is there so you can handle everything as you want or need to.<br>
<br>
There's really no way to "handle" NoCredentials though since if it's being filtered out, you won't handle it when it actually happens. Normally that's not a big deal since it would mean the user never entered anything in one of the fields and you could handle
 that with javascript too.<br>
<br>
-- Scott<br>
<br>
<br>
</div>
</span></font></div>
<div style="font-size:10pt;  font-family: 'Verdana',sans-serif;">
<p>Informationen zum Datenschutz: www.fh-campuswien.ac.at/datenschutzerklaerung </p>
</div>
</body>
</html>