Class YTsaurusError

  • All Implemented Interfaces:
    java.io.Serializable

    @NonNullApi
    public class YTsaurusError
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      YTsaurusError​(tech.ytsaurus.TError error)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String createFullErrorDescription​(tech.ytsaurus.TError error)  
      YTsaurusError findMatching​(int code)
      Deprecated.
      tech.ytsaurus.TError findMatchingError​(int code)
      Returns error of one of the inner error which has specified code.
      tech.ytsaurus.TError getError()  
      java.util.Set<java.lang.Integer> getErrorCodes()
      Get error code of this error and all inner errors.
      boolean isUnrecoverable()  
      static boolean isUnrecoverable​(java.lang.Throwable e)  
      boolean matches​(int code)
      Check if error or one of inner error has specified code.
      boolean matches​(java.util.function.Predicate<java.lang.Integer> predicate)
      Check if error or one of inner error satisfy given predicate.
      static YTsaurusError parseFrom​(java.util.Map<java.lang.String,​tech.ytsaurus.ysontree.YTreeNode> error)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • YTsaurusError

        public YTsaurusError​(tech.ytsaurus.TError error)
    • Method Detail

      • parseFrom

        public static YTsaurusError parseFrom​(java.util.Map<java.lang.String,​tech.ytsaurus.ysontree.YTreeNode> error)
      • getError

        public tech.ytsaurus.TError getError()
      • matches

        public boolean matches​(java.util.function.Predicate<java.lang.Integer> predicate)
        Check if error or one of inner error satisfy given predicate.
      • matches

        public boolean matches​(int code)
        Check if error or one of inner error has specified code.
      • findMatchingError

        @Nullable
        public tech.ytsaurus.TError findMatchingError​(int code)
        Returns error of one of the inner error which has specified code. Returns null if no such error is found.
      • getErrorCodes

        public java.util.Set<java.lang.Integer> getErrorCodes()
        Get error code of this error and all inner errors.
      • isUnrecoverable

        public boolean isUnrecoverable()
      • isUnrecoverable

        public static boolean isUnrecoverable​(java.lang.Throwable e)
      • createFullErrorDescription

        public static java.lang.String createFullErrorDescription​(tech.ytsaurus.TError error)