Class GeneralErrorModule

java.lang.Object
org.ampere.base.messages.ErrorModule
org.ampere.base.messages.GeneralErrorModule

public class GeneralErrorModule extends ErrorModule
General error messages
Author:
hmorel
  • Constructor Details

    • GeneralErrorModule

      protected GeneralErrorModule(String name)
  • Method Details

    • getSingleton

      public static GeneralErrorModule getSingleton()
    • notConfigured

      public static ErrorMessage notConfigured()
      build a Error Message when PACTE is not configurated
      Returns:
      the built error message
    • valueNotFound

      public static ErrorMessage valueNotFound()
      build a Error Message because a value is not found
      Returns:
      the built error message
    • valueAlreadySet

      public static ErrorMessage valueAlreadySet()
      build a Error Message because a value is already set
      Returns:
      the built error message
    • notFound

      public static ErrorMessage notFound()
      build a Error Message because something is not found
      Returns:
      the built error message
    • ambiguousValue

      public static ErrorMessage ambiguousValue()
      build a Error Message because a value is not found
      Returns:
      the built error message
    • valueMismatch

      public static ErrorMessage valueMismatch()
      build a Error Message because of a value mismatch
      Returns:
      the built error message
    • dimMismatch

      public static ErrorMessage dimMismatch()
      build a Error Message because a dimension mismatch
      Returns:
      the built error message
    • expected

      public static ErrorMessage expected(String value)
      build a Error Message concerning an expected value
      Parameters:
      value - expected value
      Returns:
      the built error message
    • unreconizedValue

      public static ErrorMessage unreconizedValue()
      build a Error Message for an unrecognized value *
      Returns:
      the built error message
    • found

      public static ErrorMessage found(String value)
      build a Error Message concerning an expected value
      Parameters:
      value - found value
      Returns:
      the built error message
    • notAregisteredName

      public static ErrorMessage notAregisteredName()
      build a Error Message no such registered name
      Returns:
      the built error message
    • runtimeException

      public static ErrorMessage runtimeException(Exception exception)
      build a Error Message because a resource file is missing
      Returns:
      the built error message
    • message

      public static ErrorMessage message(String message)
      build a Error Message because a resource file is missing
      Returns:
      the built error message
    • mustBeDefined

      public static ErrorMessage mustBeDefined()
      build a Error Message when something is not defined
      Returns:
      the built error message
    • mustBeGE

      public static ErrorMessage mustBeGE()
      build a Error Message when a value must be greater or equals
      Returns:
      the built error message
    • value

      public static ErrorMessage value(int value)
      build a Error Message to display an int value
      Parameters:
      value - value to be displayed
      Returns:
      the built error message
    • mustBeLE

      public static ErrorMessage mustBeLE()
      build a Error Message when a value must be lower or equals
      Returns:
      the built error message
    • configCouldBeInitialized

      public static ErrorMessage configCouldBeInitialized()
      build a Error Message when something is not defined
      Returns:
      the built error message
    • warning

      public static ErrorMessage warning()
      build a Error Message when warning occurs
      Returns:
      the built error message
    • operatingSystemNotRegonized

      public static ErrorMessage operatingSystemNotRegonized(String os)
      build a Error Message when something is not defined
      Returns:
      the built error message