Alachisoft.NCache.Common.DataStructures.RedBlackException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Common.DataStructures;
import java.io.Serializable;
/**
* The RedBlackException class distinguishes read black tree exceptions from .NET
* exceptions.
*/
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
//#if DEBUG
public class RedBlackException extends Exception implements Serializable
//#endif
{
/**
* default constructor.
*/
public RedBlackException() {
}
/**
* overloaded constructor, takes the reason as parameter.
*
* @param reason reason for exception
*/
public RedBlackException(String reason) {
super(reason);
}
/**
* overloaded constructor.
*
* @param reason reason for exception
* @param inner nested exception
*/
public RedBlackException(String reason, RuntimeException inner) {
super(reason, inner);
}
//
/**
* overloaded constructor, manual serialization.
*/
//Mansoor: SerializationInfo is not available in java
/*protected RedBlackException(SerializationInfo info, StreamingContext context) {
super(info, context);
}*/
/**
* manual serialization
*
* @param info
* @param context
*/
//C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes:
//[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)]
//Mansoor: Java Serializable interface does not provide GetObjectData
/*@Override
public void GetObjectData(SerializationInfo info, StreamingContext context) {
super.GetObjectData(info, context);
}*/
//
}