/** * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message * @param cause The root cause for this exception */ public LdapSchemaViolationException( ResultCodeEnum resultCode, String message, Throwable cause ) { super( message, cause ); checkResultCode( resultCode ); this.resultCode = resultCode; }
private void checkOidIsUniqueForComparator( String oid ) throws LdapSchemaViolationException { if ( schemaManager.getComparatorRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_355, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13220_NO_NORMALIZER, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13413_MR_DOES_NOT_HAVE_A_COMP, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
case OBJECT_CLASS_MODS_PROHIBITED: LdapSchemaViolationException ldapSchemaViolationException = new LdapSchemaViolationException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); ldapSchemaViolationException.setResolvedDn( ldapResult.getMatchedDn() );
protected void checkOidIsUnique( String oid ) throws LdapException { if ( schemaManager.getGlobalOidRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_335, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13220_NO_NORMALIZER, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13413_MR_DOES_NOT_HAVE_A_COMP, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
case OBJECT_CLASS_MODS_PROHIBITED: LdapSchemaViolationException ldapSchemaViolationException = new LdapSchemaViolationException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); ldapSchemaViolationException.setResolvedDn( ldapResult.getMatchedDn() );
private void checkOidIsUniqueForNormalizer( String oid ) throws LdapException { if ( schemaManager.getNormalizerRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_369, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13220_NO_NORMALIZER, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13413_MR_DOES_NOT_HAVE_A_COMP, matchingRule.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
case OBJECT_CLASS_MODS_PROHIBITED: LdapSchemaViolationException ldapSchemaViolationException = new LdapSchemaViolationException( ldapResult.getResultCode(), ldapResult.getDiagnosticMessage() ); ldapSchemaViolationException.setResolvedDn( ldapResult.getMatchedDn() );
/** * Creates a new instance of LdapSchemaViolationException. * * @param resultCode the ResultCodeEnum for this exception */ public LdapSchemaViolationException( ResultCodeEnum resultCode ) { super( null ); checkResultCode( resultCode ); this.resultCode = resultCode; }
private void checkOidIsUniqueForSyntaxChecker( Entry entry ) throws LdapException { String oid = getOid( entry ); if ( schemaManager.getNormalizerRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_390, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_13749_AT_WITH_CYCLE, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); return; LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13414_AT_DOES_NOT_HAVE_A_SUPERIOR_NOR_SYNTAX, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
/** * Creates a new instance of LdapSchemaViolationException. * * @param resultCode the ResultCodeEnum for this exception */ public LdapSchemaViolationException( ResultCodeEnum resultCode ) { super( null ); checkResultCode( resultCode ); this.resultCode = resultCode; }
private void checkOidIsUniqueForComparator( Entry entry ) throws LdapException { String oid = getOid( entry ); if ( schemaManager.getComparatorRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_355, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_13749_AT_WITH_CYCLE, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); return; LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13414_AT_DOES_NOT_HAVE_A_SUPERIOR_NOR_SYNTAX, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
/** * Creates a new instance of LdapSchemaViolationException. * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message */ public LdapSchemaViolationException( ResultCodeEnum resultCode, String message ) { super( message ); checkResultCode( resultCode ); this.resultCode = resultCode; }
protected void checkOidIsUnique( SchemaObject schemaObject ) throws Exception { String oid = schemaObject.getOid(); if ( schemaManager.getGlobalOidRegistry().contains( oid ) ) { throw new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_335, oid ) ); } }
LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_13749_AT_WITH_CYCLE, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error ); return; LdapSchemaViolationException error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_13414_AT_DOES_NOT_HAVE_A_SUPERIOR_NOR_SYNTAX, attributeType.getOid() ) ); errorHandler.handle( LOG, error.getMessage(), error );
/** * Creates a new instance of LdapSchemaViolationException. * * @param resultCode the ResultCodeEnum for this exception * @param message The exception message */ public LdapSchemaViolationException( ResultCodeEnum resultCode, String message ) { super( message ); checkResultCode( resultCode ); this.resultCode = resultCode; }