Examples of ErrorParsingConfigurationException


Examples of com.cloudloop.config.exceptions.ErrorParsingConfigurationException

        Throwable ex = e.getLinkedException( );
        if ( ex == null )
        {
          ex = e;
        }
        throw new ErrorParsingConfigurationException(
          "Could not parse configuration. Here are the details: "
          + ex.getMessage( ), e );
    }
    catch ( IOException e )
    {
        throw new ErrorParsingConfigurationException(
          "Could not parse configuration. Here are the details: "
          + e.getMessage( ), e );
    }
  }
View Full Code Here

Examples of com.cloudloop.config.exceptions.ErrorParsingConfigurationException

    URL cfgResource = Cloudloop.class
      .getClassLoader( )
      .getResource( SCHEMA_RESOURCE_LOCATION );
    if ( cfgResource == null )
    {
        throw new ErrorParsingConfigurationException(
          "Could not find embedded configuration schema resource '"
          + SCHEMA_RESOURCE_LOCATION + "'." );
    }
    Source schemaSource;
    try
    {
       
        schemaSource = new StreamSource( cfgResource.openStream( ) );
        return fac.newSchema( schemaSource );
    }
    catch ( IOException e )
    {
        throw new ErrorParsingConfigurationException(
          "Error reading embedded configuration schema resource '"
          + SCHEMA_RESOURCE_LOCATION + "'." );
    }
    catch ( SAXException e )
    {
        throw new ErrorParsingConfigurationException(
          "Error reading embedded configuration schema resource '"
          + SCHEMA_RESOURCE_LOCATION + "'." );
    }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.