private string getAuthenticationExceptionEventId(TicketException e) { AuthenticationException authEx = this.getAuthenticationExceptionAsCause(e); //if (this.logger.isDebugEnabled()) // this.logger.debug("An authentication error has occurred. Returning the event id " + authEx.getType()); return(authEx.getType()); }
private void populateErrorsInstance(TicketException e, MessageContext messageContext) { //try //{ // messageContext.addMessage(new MessageBuilder().error().code(e.getCode()).defaultText(e.getCode()).build()); //} //catch (Exception fe) //{ // logger.error(fe.getMessage(), fe); //} }
public int InsertException(TicketException objException) { try { //DataBaseServiceHandler.ConnectionString = CommonDataAccess.ExchangeConnectionString; return(DataBaseServiceHandler.ExecuteNonQuery(CommonDataAccess.ExchangeConnectionString, CommandType.StoredProcedure, DBConstants.CONST_SP_INSERT_EXCEPTION_PROC, DataBaseServiceHandler.AddParameter <int>(DBConstants.CONST_PARAM_INSTALLATION_ID, DbType.Int32, objException.InstallationNumber), DataBaseServiceHandler.AddParameter <int>(DBConstants.CONST_PARAM_EXCEPTION_TYPE, DbType.Int32, objException.ExceptionType), DataBaseServiceHandler.AddParameter <string>(DBConstants.CONST_PARAM_EXCEPTION_DETAILS, DbType.String, objException.ExceptionDetails), DataBaseServiceHandler.AddParameter <string>(DBConstants.CONST_PARAM_EXCEPTION_REFERENCE, DbType.String, objException.Reference), DataBaseServiceHandler.AddParameter <int>(DBConstants.CONST_PARAM_EXCEPTION_USER, DbType.Int32, objException.User))); } catch (Exception ex) { ExceptionManager.Publish(ex); return(-1); } }
private bool isCauseAuthenticationException(TicketException e) { return(e.getCode() != null && typeof(AuthenticationException).IsAssignableFrom(e.GetType())); }
private AuthenticationException getAuthenticationExceptionAsCause(TicketException e) { throw new NotImplementedException(); //return (AuthenticationException)e; }
public int InsertException(TicketException TicketExceptionEntity) { return(shortPay.InsertException(TicketExceptionEntity)); }
public int InsertException(TicketException TicketException) { return(shortPayDataAccess.InsertException(TicketException)); }