Package org.wso2.carbon.identity.base

Examples of org.wso2.carbon.identity.base.IdentityException


                resource = registry.get(paths[0]);
            }
        } catch (RegistryException e) {
            String message = "Error while retreving first object from the registry path  with property value";
            log.error(message, e);
            throw new IdentityException(message, e);
        }

        return resourceToObject(resource);
    }
View Full Code Here


            if (!transactionStarted) {
                try {
                    registry.rollbackTransaction();
                } catch (RegistryException e) {
                    log.error("Error occured while updating OpenID remember me token", e);
                    throw new IdentityException(
                            "Error occured while updating OpenID remember me token", e);
                }
            }
        }
    }
View Full Code Here

            value = userResource.getProperty("OpenIDRememberMeToken");

        } catch (Exception e) {
            log.error("Error occured while updating OpenID remember me token", e);
            throw new IdentityException("Error occured while updating OpenID remember me token", e);
        }

        return value;
    }
View Full Code Here

            resource.addProperty(IdentityRegistryResources.OPENID_PATTERN, opAdmin
                    .getTenantOpenIDPattern());
            registry.put(path, resource);
        } catch (RegistryException e) {
            log.error("Error while creating/updating openid admin", e);
            throw new IdentityException("Error while creating/updating openid admin", e);
        }
    }
View Full Code Here

                resource = registry.get(IdentityRegistryResources.OPEN_ID_ADMIN_SETTINGS);
                return resourceToObject(resource);
            }
        } catch (RegistryException e) {
            log.error("Error while retreiving openid admin", e);
            throw new IdentityException("Error while retreiving openid admin", e);
        }
        return opdo;
    }
View Full Code Here

                    registry.rollbackTransaction();
                }
                if (e instanceof RegistryException) {
                    throw (RegistryException)e;
                } else {
                    throw new IdentityException("Error occured while creating new infromation card", e);
                }
            }

            if (log.isDebugEnabled()) {
                log.debug("New information card added successfully, " + card.getCardId());
            }

        } catch (RegistryException e) {
            log.error("Error occured while creating new infromation card", e);
            throw new IdentityException("Error occured while creating new infromation card", e);
        }
    }
View Full Code Here

                log.debug("Information card updated successfully, " + card.getCardId());
            }

        } catch (RegistryException e) {
            log.error("Error occured while updating infromation card", e);
            throw new IdentityException("Error occured while updating infromation card", e);
        }
    }
View Full Code Here

                    registry.rollbackTransaction();
                }
                if (e instanceof RegistryException) {
                    throw (RegistryException)e;
                } else {
                    throw new IdentityException("Error occured while deleting infromation card", e);
                }
            }
            if (log.isDebugEnabled()) {
                log.debug("Information card deleted successfully, " + card.getCardId());
            }

        } catch (RegistryException e) {
            log.error("Error occured while deleting infromation card", e);
            throw new IdentityException("Error occured while deleting infromation card", e);
        }
    }
View Full Code Here

                }
            }

        } catch (RegistryException e) {
            log.error("Error occured while retreiving all infromation card", e);
            throw new IdentityException("Error occured while retreiving all infromation card", e);
        }

        return cards.toArray(new InfoCardDO[cards.size()]);
    }
View Full Code Here

            if (registry.resourceExists(path)) {
                return resourceToObject(registry.get(path));
            }
        } catch (RegistryException e) {
            log.error("Error occured while retreiving all infromation card", e);
            throw new IdentityException("Error occured while retreiving all infromation card", e);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.identity.base.IdentityException

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.