Class FeatureWarning

  • All Implemented Interfaces:
    com.opencloud.util.FastSerializable, java.io.Serializable

    public final class FeatureWarning
    extends java.lang.Object
    implements java.io.Serializable, com.opencloud.util.FastSerializable
    Represents a warning to the sentinel core, e.g for a non-fatal error or situation that the feature resolved in some way that the feature wants the sentinel core to note
    See Also:
    Serialized Form
    • Constructor Detail

      • FeatureWarning

        public FeatureWarning​(FeatureWarning.Cause cause,
                              java.lang.String explanation)
        Create a feature error with an associated cause and explanation
        Parameters:
        cause - the cause of the error
        explanation - description of the error
      • FeatureWarning

        public FeatureWarning​(java.io.DataInput in)
                       throws java.io.IOException
        Deserialise a FastSerialized FeatureWarning.
        Parameters:
        in - input stream.
        Throws:
        java.io.IOException
    • Method Detail

      • getExplanation

        public java.lang.String getExplanation()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStream

        public void toStream​(java.io.DataOutput stream)
                      throws java.io.IOException
        Specified by:
        toStream in interface com.opencloud.util.FastSerializable
        Throws:
        java.io.IOException