Examples of DomainStorageException


Examples of org.pentaho.metadata.repository.DomainStorageException

    } catch ( Exception e ) {
      final String errorMessage =
          messages.getErrorString( "PentahoMetadataDomainRepository.ERROR_0003_ERROR_STORING_DOMAIN", domain.getId(), e
              .getLocalizedMessage() );
      logger.error( errorMessage, e );
      throw new DomainStorageException( xmi + errorMessage, e );
    }
  }
View Full Code Here

Examples of org.pentaho.metadata.repository.DomainStorageException

      // throw new
      // DomainStorageException(messages.getErrorString("PentahoMetadataDomainRepository.ERROR_0010_ERROR_PARSING_XMI"),
      // ex);
      java.io.ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
      ex.printStackTrace( new java.io.PrintStream( byteArrayOutputStream ) );
      throw new DomainStorageException( byteArrayOutputStream.toString(), ex );
    }

    final SimpleRepositoryFileData data =
        new SimpleRepositoryFileData( inputStream2, DEFAULT_ENCODING, DOMAIN_MIME_TYPE );
    if ( domainFile == null ) {
View Full Code Here

Examples of org.pentaho.metadata.repository.DomainStorageException

      try {
        final OutputStream out = new ByteArrayOutputStream();
        properties.store( out, null );
        addLocalizationFile( domainId, locale, new ByteArrayInputStream( out.toString().getBytes() ), true );
      } catch ( IOException e ) {
        throw new DomainStorageException( messages.getErrorString(
            "PentahoMetadataDomainRepository.ERROR_0008_ERROR_IN_REPOSITORY", e.getLocalizedMessage() ), e );
      }
    }
  }
View Full Code Here

Examples of org.pentaho.metadata.repository.DomainStorageException

      synchronized ( metadataMapping ) {
        // Check for duplicates
        final RepositoryFile localeFile = metadataMapping.getLocaleFile( domainId, locale );
        if ( !overwrite && localeFile != null ) {
          throw new DomainStorageException( messages.getErrorString(
              "PentahoMetadataDomainRepository.ERROR_0009_LOCALE_ALREADY_EXISTS", domainId, locale ), null );
        }

        final SimpleRepositoryFileData data =
            new SimpleRepositoryFileData( inputStream, DEFAULT_ENCODING, LOCALE_MIME_TYPE );
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.