Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » What is difference between JazzAuthErrorException and JazzAuthFailedException?
What is difference between JazzAuthErrorException and JazzAuthFailedException? [message #1706413] Wed, 26 August 2015 17:04 Go to next message
Geoff Alexander is currently offline Geoff AlexanderFriend
Messages: 28
Registered: November 2013
Junior Member
Javadoc for the JazzAuthErrorException and JazzAuthFailedException classes gives the same description:
Exception indicating a Jazz authentication or credentials problem 

So what are the differences between the two classes (other than their names)? When would each be used?
Re: What is difference between JazzAuthErrorException and JazzAuthFailedException? [message #1706509 is a reply to message #1706413] Thu, 27 August 2015 12:51 Go to previous message
Michael Fiedler is currently offline Michael FiedlerFriend
Messages: 15
Registered: September 2012
Junior Member
The Javadoc needs some improvement in that area - I will open a Bugzilla.

JazzAuthFailedException is thrown by JazzFormAuthClient.login() when an HTTP response comes back from the Jazz server with an HTTP response header X-com-ibm-team-repository-web-auth-msg with a value of "authfailed". The server sends this when the user could not be authenticated. The exception will contain the username and the URL of the server.

After checking for the authfailed header above, the same method looks at the HTTP status code. If it is anything other than SC_OK or SC_MOVED_TEMPORARILY, JazzAuthErrorException is thrown with the HTTP status code and the server URL.

Previous Topic:Anyone going to All Things Open or REST Fest 2015 this year
Next Topic:Testing Jazz repository connection data
Goto Forum:

Current Time: Fri Jun 21 05:27:40 GMT 2024

Powered by FUDForum. Page generated in 0.04177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top