本文整理了Java中org.hibernate.search.exception.AssertionFailure类的一些代码示例,展示了AssertionFailure类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AssertionFailure类的具体详情如下:包路径:org.hibernate.search.exception.AssertionFailure类名称:AssertionFailure
AssertionFailure介绍
[英]Indicates failure of an assertion: a possible bug in Hibernate Search.[中]表示断言失败:Hibernate搜索中可能存在错误。
代码示例
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure unknownEncodingType(final String encoding) { final AssertionFailure result = new AssertionFailure(String.format(unknownEncodingType$str(), encoding)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String invalidStringDateFieldInDocument = "HSEARCH000240: Unable to parse value '%2$s' of field '%1$s' into a Date";
代码示例来源:origin: hibernate/hibernate-search
public List getSealedQueue() { if ( sealedQueue == null ) { throw new AssertionFailure( "Access a WorkQueue which has not been sealed" ); } this.sealedAndUnchanged = false; return sealedQueue;}
代码示例来源:origin: hibernate/hibernate-search
public T get() { if ( !initialized ) { throw new AssertionFailure( "A reference has been accessed before having been initialized." ); } return value;}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure parametersShouldNotBeNull(final String arg0) { final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), arg0)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}@Override
代码示例来源:origin: hibernate/hibernate-search
public static boolean cacheInstance(FilterCacheModeType type) { switch ( type ) { case NONE: return false; case INSTANCE_AND_DOCIDSETRESULTS: return true; case INSTANCE_ONLY: return true; default: throw new AssertionFailure( "Unknown FilterCacheModeType:" + type ); }}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure unknownEncodingType(final String arg0) { final AssertionFailure result = new AssertionFailure(String.format(unknownEncodingType$str(), arg0)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String invalidStringDateFieldInDocument = "HSEARCH000240: Unable to parse value '%2$s' of field '%1$s' into a Date";
代码示例来源:origin: org.hibernate/hibernate-search-elasticsearch
@Override public void checkSuccess(JsonObject bulkResponseItem) { throw new AssertionFailure( "This method should never be called, because DeleteByQuery actions are not Bulkable" ); }}
代码示例来源:origin: org.hibernate/hibernate-search-backend-elasticsearch
@Overridepublic final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException arg0) { final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), arg0); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";
代码示例来源:origin: org.infinispan/infinispan-embedded-query
void initialize(T value) { if ( this.value != null ) { throw new AssertionFailure( "A reference has been initialized more than once." ); } this.value = value; this.initialized = true;}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure unknownResolution(final String resolution) { final AssertionFailure result = new AssertionFailure(String.format(unknownResolution$str(), resolution)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String fieldBridgeNotAnInstanceof = "HSEARCH000144: FieldBridge passed in is not an instance of %1$s";
代码示例来源:origin: org.hibernate/hibernate-search-elasticsearch
private JsonObject requireRoot(JsonObject root) { if ( root == null ) { throw new AssertionFailure( "A null root was encountered" ); } else { return root; } }}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException arg0) { final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), arg0); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";
代码示例来源:origin: org.infinispan/infinispan-embedded-query
public List getSealedQueue() { if ( sealedQueue == null ) { throw new AssertionFailure( "Access a WorkQueue which has not been sealed" ); } this.sealedAndUnchanged = false; return sealedQueue;}
代码示例来源:origin: org.hibernate/hibernate-search-backend-elasticsearch
@Overridepublic final AssertionFailure parametersShouldNotBeNull(final String arg0) { final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), arg0)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}@Override
代码示例来源:origin: hibernate/hibernate-search
private JsonObject requireRoot(JsonObject root) { if ( root == null ) { throw new AssertionFailure( "A null root was encountered" ); } else { return root; } }}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure parametersShouldNotBeNull(final String parameterName) { final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), parameterName)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}@Override
代码示例来源:origin: hibernate/hibernate-search
@Overridepublic boolean equals(Object obj) { throw new AssertionFailure( "this type can not be compared reliably" );}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException e) { final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";
代码示例来源:origin: hibernate/hibernate-search
public static boolean cacheResults(FilterCacheModeType type) { switch ( type ) { case NONE: return false; case INSTANCE_AND_DOCIDSETRESULTS: return true; case INSTANCE_ONLY: return false; default: throw new AssertionFailure( "Unknown FilterCacheModeType:" + type ); } }}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
@Overridepublic final AssertionFailure unknownResolution(final String arg0) { final AssertionFailure result = new AssertionFailure(String.format(unknownResolution$str(), arg0)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result;}private static final String fieldBridgeNotAnInstanceof = "HSEARCH000144: FieldBridge passed in is not an instance of %1$s";