All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.DataStructures.RedBlackException Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
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);
        }*/
    //
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy