Class ExceptionMessageUtil

java.lang.Object
io.deephaven.base.verify.ExceptionMessageUtil

public final class ExceptionMessageUtil extends Object
String utility methods related to assertions.
  • (package) String failureMessage(String assertionType, String preamble, String message, String detailMessage)
  • (package) String valueString(Object)
  • (public) String valueAndName(value0, String name0, value1, String name1, ... )
  • (public) String concat(String valueAndName0, String valueAndName1, ... )
  • Constructor Details

    • ExceptionMessageUtil

      public ExceptionMessageUtil()
  • Method Details

    • failureMessage

      public static String failureMessage(String assertionType, String assertedText, String conditionText, String detailMessage)
      Return message string for assertion failure.
    • valueString

      public static String valueString(Object o)
      Return the textual representation of an Object's value.
    • valueString

      public static String valueString(char c)
      Return the quoted textual representation of char value.
    • fillChar

      public static String fillChar(char c, int count)
      Builds a string that consists of count copies of the character c.
      Parameters:
      c - character to use repeatedly
      count - number of times to repeat c
      Returns:
      new string filled with the character c
    • valueAndName

      public static String valueAndName(Object o0, String name0)
      Return the values and names of one or more Objects.
    • valueAndName

      public static String valueAndName(Object o0, String name0, Object o1, String name1)
    • valueAndName

      public static String valueAndName(Object o0, String name0, Object o1, String name1, Object o2, String name2)
    • valueAndName

      public static String valueAndName(Object o0, String name0, Object o1, String name1, Object o2, String name2, Object o3, String name3)
    • valueAndName

      public static String valueAndName(boolean b0, String name0)
      Return the values and names of one or more booleans.
    • valueAndName

      public static String valueAndName(boolean b0, String name0, boolean b1, String name1)
    • valueAndName

      public static String valueAndName(boolean b0, String name0, boolean b1, String name1, boolean b2, String name2)
    • valueAndName

      public static String valueAndName(boolean b0, String name0, boolean b1, String name1, boolean b2, String name2, boolean b3, String name3)
    • valueAndName

      public static String valueAndName(char c0, String name0)
      Return the values and names of one or more chars
    • valueAndName

      public static String valueAndName(char c0, String name0, char c1, String name1)
    • valueAndName

      public static String valueAndName(char c0, String name0, char c1, String name1, char c2, String name2)
    • valueAndName

      public static String valueAndName(char c0, String name0, char c1, String name1, char c2, String name2, char c3, String name3)
    • valueAndName

      public static String valueAndName(byte b0, String name0)
      Return the values and names of one or more bytes.
    • valueAndName

      public static String valueAndName(byte b0, String name0, byte b1, String name1)
    • valueAndName

      public static String valueAndName(byte b0, String name0, byte b1, String name1, byte b2, String name2)
    • valueAndName

      public static String valueAndName(byte b0, String name0, byte b1, String name1, byte b2, String name2, byte b3, String name3)
    • valueAndName

      public static String valueAndName(short s0, String name0)
      Return the values and names of one or more shorts.
    • valueAndName

      public static String valueAndName(short s0, String name0, short s1, String name1)
    • valueAndName

      public static String valueAndName(short s0, String name0, short s1, String name1, short s2, String name2)
    • valueAndName

      public static String valueAndName(short s0, String name0, short s1, String name1, short s2, String name2, short s3, String name3)
    • valueAndName

      public static String valueAndName(int i0, String name0)
      Return the values and names of one or more ints.
    • valueAndName

      public static String valueAndName(int i0, String name0, int i1, String name1)
    • valueAndName

      public static String valueAndName(int i0, String name0, int i1, String name1, int i2, String name2)
    • valueAndName

      public static String valueAndName(int i0, String name0, int i1, String name1, int i2, String name2, int i3, String name3)
    • valueAndName

      public static String valueAndName(long l0, String name0)
      Return the values and names of one or more longs.
    • valueAndName

      public static String valueAndName(long l0, String name0, long l1, String name1)
    • valueAndName

      public static String valueAndName(long l0, String name0, long l1, String name1, long l2, String name2)
    • valueAndName

      public static String valueAndName(long l0, String name0, long l1, String name1, long l2, String name2, long l3, String name3)
    • valueAndName

      public static String valueAndName(float f0, String name0)
      Return the values and names of one or more floats.
    • valueAndName

      public static String valueAndName(float f0, String name0, float f1, String name1)
    • valueAndName

      public static String valueAndName(float f0, String name0, float f1, String name1, float f2, String name2)
    • valueAndName

      public static String valueAndName(float f0, String name0, float f1, String name1, float f2, String name2, float f3, String name3)
    • valueAndName

      public static String valueAndName(double d0, String name0)
      Return the values and names of one or more doubles.
    • valueAndName

      public static String valueAndName(double d0, String name0, double d1, String name1)
    • valueAndName

      public static String valueAndName(double d0, String name0, double d1, String name1, double d2, String name2)
    • valueAndName

      public static String valueAndName(double d0, String name0, double d1, String name1, double d2, String name2, double d3, String name3)
    • concat

      public static String concat(String valueAndName0, String valueAndName1)
      Return the concatenation of a list of valueAndName strings.
    • concat

      public static String concat(String valueAndName0, String valueAndName1, String valueAndName2)
    • concat

      public static String concat(String valueAndName0, String valueAndName1, String valueAndName2, String valueAndName3)