Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 4
0
 private bool isCauseAuthenticationException(TicketException e)
 {
     return(e.getCode() != null && typeof(AuthenticationException).IsAssignableFrom(e.GetType()));
 }
Ejemplo n.º 5
0
 private AuthenticationException getAuthenticationExceptionAsCause(TicketException e)
 {
     throw new NotImplementedException();
     //return (AuthenticationException)e;
 }
Ejemplo n.º 6
0
 public int InsertException(TicketException TicketExceptionEntity)
 {
     return(shortPay.InsertException(TicketExceptionEntity));
 }
Ejemplo n.º 7
0
 public int InsertException(TicketException TicketException)
 {
     return(shortPayDataAccess.InsertException(TicketException));
 }