Class IgniteCheckedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.ignite.lang.IgniteCheckedException
All Implemented Interfaces:
Serializable, TraceableException

public class IgniteCheckedException extends Exception implements TraceableException
General Ignite exception. Used to indicate any error condition within a node.
See Also:
  • Constructor Details

    • IgniteCheckedException

      public IgniteCheckedException(int code)
      Creates an exception with the given error code.
      Parameters:
      code - Full error code.
    • IgniteCheckedException

      public IgniteCheckedException(UUID traceId, int code)
      Creates an exception with the given trace ID and error code.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
    • IgniteCheckedException

      public IgniteCheckedException(int code, String message)
      Creates an exception with the given error code and detailed message.
      Parameters:
      code - Full error code.
      message - Detailed message.
    • IgniteCheckedException

      public IgniteCheckedException(UUID traceId, int code, String message)
      Creates an exception with the given trace ID, error code, and detailed message.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      message - Detailed message.
    • IgniteCheckedException

      public IgniteCheckedException(int code, @Nullable @Nullable Throwable cause)
      Creates an exception with the given error code and cause.
      Parameters:
      code - Full error code.
      cause - Optional nested exception (can be null).
    • IgniteCheckedException

      public IgniteCheckedException(UUID traceId, int code, @Nullable @Nullable Throwable cause)
      Creates an exception with the given trace ID, error code, and cause.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      cause - Optional nested exception (can be null).
    • IgniteCheckedException

      public IgniteCheckedException(int code, String message, @Nullable @Nullable Throwable cause)
      Creates an exception with the given error code, detailed message, and cause.
      Parameters:
      code - Full error code.
      message - Detailed message.
      cause - Optional nested exception (can be null).
    • IgniteCheckedException

      public IgniteCheckedException(UUID traceId, int code, String message, @Nullable @Nullable Throwable cause)
      Creates an exception with the given trace ID, error code, detailed message, and cause.
      Parameters:
      traceId - Unique identifier of the exception.
      code - Full error code.
      message - Detailed message.
      cause - Optional nested exception (can be null).
  • Method Details

    • groupName

      public String groupName()
      Returns a group name of the error.
      Returns:
      Group name.
      See Also:
    • code

      public int code()
      Returns a full error code that includes the error's group and code, which uniquely identifies the problem within the group. This is a combination of two most-significant bytes for the error group and two least-significant bytes for the error code.
      Specified by:
      code in interface TraceableException
      Returns:
      Full error code.
    • codeAsString

      public String codeAsString()
      Returns a human-readable string that represents a full error code. The string format is 'IGN-XXX-nnn', where 'XXX' is the group name and 'nnn' is the unique error code within the group.
      Returns:
      Full error code in a human-readable format.
    • groupCode

      public short groupCode()
      Returns an error group.
      Specified by:
      groupCode in interface TraceableException
      Returns:
      Error group.
      See Also:
    • errorCode

      public short errorCode()
      Returns an error code that uniquely identifies a problem within a group.
      Specified by:
      errorCode in interface TraceableException
      Returns:
      Error code.
      See Also:
    • traceId

      public UUID traceId()
      Returns a unique identifier of the exception.
      Specified by:
      traceId in interface TraceableException
      Returns:
      Unique identifier of the exception.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable