com.gemstone.gemfire.InternalGemFireError Maven / Gradle / Ivy
Show all versions of gemfire-core Show documentation
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License. See accompanying
* LICENSE file.
*/
/**
*
*/
package com.gemstone.gemfire;
/**
* Indicates that serious error has occurred within the GemFire system.
*
* This is similar to {@link AssertionError}, but these errors are always
* enabled in a GemFire system.
*
* @author jpenney
* @since 5.5
* @see AssertionError
*/
public class InternalGemFireError extends Error {
private static final long serialVersionUID = 6390043490679349593L;
/**
*
*/
public InternalGemFireError() {
}
/**
* @param message
*/
public InternalGemFireError(String message) {
super(message);
}
/**
* @param cause
*/
public InternalGemFireError(Throwable cause) {
super(cause);
}
/**
* @param message
* @param cause
*/
public InternalGemFireError(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified object, which is converted to a string as
* defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* If the specified object is an instance of Throwable, it
* becomes the cause of the newly constructed assertion error.
*
* @param detailMessage value to be used in constructing detail message
* @see Throwable#getCause()
*/
public InternalGemFireError(Object detailMessage) {
this("" + detailMessage);
if (detailMessage instanceof Throwable)
initCause((Throwable) detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified boolean
, which is converted to
* a string as defined in The Java Language Specification,
* Second Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(boolean detailMessage) {
this("" + detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified char
, which is converted to a
* string as defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(char detailMessage) {
this("" + detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified int
, which is converted to a
* string as defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(int detailMessage) {
this("" + detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified long
, which is converted to a
* string as defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(long detailMessage) {
this("" + detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified float
, which is converted to a
* string as defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(float detailMessage) {
this("" + detailMessage);
}
/**
* Constructs an AssertionError with its detail message derived
* from the specified double
, which is converted to a
* string as defined in The Java Language Specification, Second
* Edition, Section 15.18.1.1.
*
* @param detailMessage value to be used in constructing detail message
*/
public InternalGemFireError(double detailMessage) {
this("" + detailMessage);
}
}