Interface ErrorInformation

All Known Implementing Classes:
ActionErrorEnum

public interface ErrorInformation
ErrorInformation
Author:
渔民小镇
date:
2022-01-14
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    assertFalse(boolean v1)
    Asserts that the value must be false, otherwise throws an exception
    default void
    assertFalse(boolean v1, String msg)
    Asserts that the value must be false, otherwise throws an exception
    default void
    Asserts that the assertion value cannot be null, otherwise throws an exception
    default void
    Asserts that the assertion value cannot be null, otherwise throws an exception
    default void
    Asserts that the assertion value is null, otherwise throws an exception
    default void
    Asserts that the assertion value is null, otherwise throws an exception
    default void
    assertTrue(boolean v1)
    Asserts that the value must be true, otherwise throws an exception
    default void
    assertTrue(boolean v1, String msg)
    Asserts that the value must be true, otherwise throws an exception
    default void
    assertTrueThrows(boolean v1)
    Asserts to be true, otherwise throws an exception
    default void
    assertTrueThrows(boolean v1, String msg)
    Asserts to be true, otherwise throws an exception
    int
     
     
  • Method Details

    • getMessage

      String getMessage()
    • getCode

      int getCode()
    • assertTrueThrows

      default void assertTrueThrows(boolean v1) throws MessageException
      Asserts to be true, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      Throws:
      MessageException - e
    • assertTrueThrows

      default void assertTrueThrows(boolean v1, String msg) throws MessageException
      Asserts to be true, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      msg - Custom message
      Throws:
      MessageException - e
    • assertNonNull

      default void assertNonNull(Object value, String msg) throws MessageException
      Asserts that the assertion value cannot be null, otherwise throws an exception
      Parameters:
      value - The assertion value
      msg - Custom message
      Throws:
      MessageException - e
    • assertNonNull

      default void assertNonNull(Object value) throws MessageException
      Asserts that the assertion value cannot be null, otherwise throws an exception
      Parameters:
      value - The assertion value
      Throws:
      MessageException - e
    • assertNullThrows

      default void assertNullThrows(Object value) throws MessageException
      Asserts that the assertion value is null, otherwise throws an exception
      Parameters:
      value - The assertion value
      Throws:
      MessageException - e
    • assertNullThrows

      default void assertNullThrows(Object value, String msg) throws MessageException
      Asserts that the assertion value is null, otherwise throws an exception
      Parameters:
      value - The assertion value
      msg - Custom message
      Throws:
      MessageException - e
    • assertTrue

      default void assertTrue(boolean v1) throws MessageException
      Asserts that the value must be true, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      Throws:
      MessageException - e
    • assertFalse

      default void assertFalse(boolean v1) throws MessageException
      Asserts that the value must be false, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      Throws:
      MessageException - e
    • assertFalse

      default void assertFalse(boolean v1, String msg) throws MessageException
      Asserts that the value must be false, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      msg - Custom message
      Throws:
      MessageException - e
    • assertTrue

      default void assertTrue(boolean v1, String msg) throws MessageException
      Asserts that the value must be true, otherwise throws an exception
      Parameters:
      v1 - The assertion value
      msg - Custom message
      Throws:
      MessageException - e