Package org.mifosplatform.infrastructure.hooks.exception

Examples of org.mifosplatform.infrastructure.hooks.exception.HookNotFoundException


  }

  private Hook retrieveHookBy(final Long hookId) {
    final Hook hook = this.hookRepository.findOne(hookId);
    if (hook == null) {
      throw new HookNotFoundException(hookId.toString());
    }
    return hook;
  }
View Full Code Here


      final String sql = "select " + rm.schema() + " where h.id = ?";

      return this.jdbcTemplate.queryForObject(sql, rm,
          new Object[] { hookId });
    } catch (final EmptyResultDataAccessException e) {
      throw new HookNotFoundException(hookId);
    }

  }
View Full Code Here

TOP

Related Classes of org.mifosplatform.infrastructure.hooks.exception.HookNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.