Package org.wso2.carbon.identity.base

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


                    }
                }
            }
        } catch (RegistryException e) {
            log.error("Error reading Service Providers from Registry", e);
            throw new IdentityException("Error reading Service Providers from Registry",e);
        }
        return serviceProvidersList;
    }
View Full Code Here


                    throw e;
                }
            }
        } catch (RegistryException e) {
            log.error("Error removing the service provider from the registry", e);
            throw new IdentityException("Error removing the service provider from the registry", e);
        }

        return false;
    }
View Full Code Here

            if (registry.resourceExists(path)) {
                serviceProviderDO = resourceToObject(registry.get(path));
            }
        } catch (RegistryException e) {
            log.error("Error reading Service Providers from Registry", e);
            throw new IdentityException("Error reading Service Providers from Registry", e);
        }

        return serviceProviderDO;
    }
View Full Code Here

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

            if (log.isDebugEnabled()) {
                log.debug("New oauth application added successfully, " + app.getApplicationName());
            }

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

                    registry.rollbackTransaction();
                }
                if (e instanceof RegistryException) {
                    throw (RegistryException)e;
                } else {
                    throw new IdentityException("Error while creating or updating PPID value", e);
                }
            }
        } catch (RegistryException e) {
            log.error("Error while creating or updating PPID value", e);
            throw new IdentityException("Error while creating or updating PPID value", e);
        }
    }
View Full Code Here

                    ppids.add(ppid);
                }
            }
        } catch (RegistryException e) {
            log.error("Error while retreiving PPID for user " + userId, e);
            throw new IdentityException("Error while retreiving PPID for user " + userId, e);
        }

        return ppids.toArray(new PPIDValueDO[ppids.size()]);
    }
View Full Code Here

            } else {
                return null;
            }
        } catch (RegistryException e) {
            log.error("Error while retreiving user for PPID value  " + ppid, e);
            throw new IdentityException("Error while retreiving user for PPID value  " + ppid, 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("OAuth app deleted successfully, " + appName);
            }

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

                    apps.add(oauthApp);
                }
            }
        } catch (RegistryException e) {
            log.error("Error occured while retreiving oauth applications for" + userName, e);
            throw new IdentityException("Error occured while retreiving oauth applications for "
                    + userName, e);
        }

        return apps.toArray(new OAuthAppDO[apps.size()]);
    }
View Full Code Here

            if (registry.resourceExists(path)) {
                return resourceToObject(registry.get(path));
            }
        } catch (RegistryException e) {
            log.error("Error occured while retreiving oauth application", e);
            throw new IdentityException("Error occured while retreiving oauth application", 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.