public String getSecurityErrorText ( int iErrorCode ) { String key = "Error " + Integer . toString ( iErrorCode ) ; if ( iErrorCode == Constants . ACCESS_DENIED ) key = "Access Denied" ; if ( iErrorCode == Constants . LOGIN_REQUIRED ) key = "Login required" ; if ( iErrorCode == Constants . AUTHENTICATION_REQUIRED ) key = "Authentication required" ; if ( iErrorCode == Constants . CREATE_USER_REQUIRED ) key = "Create user required" ; key = this . getResources ( ThinResourceConstants . ERROR_RESOURCE , true ) . getString ( key ) ; return key ; }
Get the error text for this security error .