|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openmrs.api.APIException
org.openmrs.api.APIAuthenticationException
public class APIAuthenticationException
Represents often fatal errors that occur within the API infrastructure involving a user's lack of privileges. In certain presentation environments, this exception is caught and the user is redirected to the login page where they can provide new or higher credentials.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
APIAuthenticationException()
Default empty constructor. |
|
APIAuthenticationException(java.lang.String message)
Common constructor taking in a message to give the user some context as to where/why the authentication failed. |
|
APIAuthenticationException(java.lang.String message,
java.lang.Throwable cause)
Common constructor taking in a message to give the user some context as to where/why the authentication failed. |
|
APIAuthenticationException(java.lang.Throwable cause)
Constructor giving the user a further cause exception reason that caused this authentication failure |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public APIAuthenticationException()
APIAuthenticationException(String) constructor to provide some context to the user
as to where/why the authentication has failed
public APIAuthenticationException(java.lang.String message)
message - String describing where/why the authentication failed
public APIAuthenticationException(java.lang.String message,
java.lang.Throwable cause)
message - String describing where/why the authentication failedcause - error further up the stream that caused this authentication failurepublic APIAuthenticationException(java.lang.Throwable cause)
cause - error further up the stream that caused this authentication failure
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||