Klasse AbstractInvalidArgumentException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
ArgumentBelongsToParentException, ArgumentContainsElementException, ArgumentDoesNotBelongToParentException, ArgumentDoesNotContainElementException, ArgumentDoesNotHaveAttributeException, ArgumentDoesNotSupportMethodException, ArgumentHasAttributeException, ArgumentIsInRangeException, ArgumentIsNotNullException, ArgumentIsNullException, ArgumentIsOutOfRangeException, BiggerArgumentException, ClosedArgumentException, DeletedArgumentException, EmptyArgumentException, EqualArgumentException, InvalidArgumentException, InvalidPortException, NegativeArgumentException, NewArgumentException, NonEmptyArgumentException, NonNegativeArgumentException, NonPositiveArgumentException, PositiveArgumentException, ReferencedArgumentException, SmallerArgumentException, UnacceptedKeyException, UnconnectedArgumentException, UnequalArgumentException, UnrepresentingArgumentException, UnsupportedCaseException

public abstract class AbstractInvalidArgumentException extends RuntimeException
A AbstractInvalidArgumentException is a RuntimeException that is supposed to be thrown when a given argument is not valid. A AbstractInvalidArgumentException stores the argument the AbstractInvalidArgumentException was created for. A AbstractInvalidArgumentException stores the name of the argument the AbstractInvalidArgumentException was created for.
Version:
2025-04-11
Autor:
Silvan Wyss
Siehe auch:
  • Konstruktordetails

    • AbstractInvalidArgumentException

      protected AbstractInvalidArgumentException(Object argument)
      Creates a new AbstractInvalidArgumentException for the given argument.
      Parameter:
      argument - - Can be null.
    • AbstractInvalidArgumentException

      protected AbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto)
      Creates a new AbstractInvalidArgumentException for the given argument and argumentName of the given argumentNameDto
      Parameter:
      argument - - Can be null.
      argumentNameDto -
      Löst aus:
      RuntimeException - if the given argumentNameDto is null.
      RuntimeException - if the argumentName of the given argumentNameDto is null or blank.
    • AbstractInvalidArgumentException

      protected AbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto)
      Creates a new AbstractInvalidArgumentException for the given argument, argumentName of the given argumentNameDto and errorPredicate of the given errorPredicateDto.
      Parameter:
      argument - - Can be null.
      argumentNameDto -
      errorPredicateDto -
      Löst aus:
      RuntimeException - if the given argumentNameDto is null.
      RuntimeException - if the argumentName of the given argumentNameDto is null or blank.
      RuntimeException - if the given errorPredicateDto is null.
      RuntimeException - if the errorPredicate of the given errorPredicateDto is null or blank.
    • AbstractInvalidArgumentException

      protected AbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto)
      Creates a new AbstractInvalidArgumentException for the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.
      Parameter:
      argument - - Can be null.
      argumentNameDto -
      errorPredicateDto -
      causeDto -
      Löst aus:
      RuntimeException - if the given argumentNameDto is null.
      RuntimeException - if the argumentName of the given argumentNameDto is null or blank.
      RuntimeException - if the given errorPredicateDto is null.
      RuntimeException - if the errorPredicate of the given errorPredicateDto is null or blank.
      RuntimeException - if the given causeDto is null.
      RuntimeException - if the cause of the given causeDto is null.
    • AbstractInvalidArgumentException

      protected AbstractInvalidArgumentException(Object argument, ErrorPredicateDto errorPredicateDto)
      Creates a new AbstractInvalidArgumentException for the given argument and the errorPredicate of the given errorPredicateDto.
      Parameter:
      argument - - Can be null.
      errorPredicateDto -
      Löst aus:
      RuntimeException - if the given errorPredicateDto is null.
      RuntimeException - if the errorPredicate of the given errorPredicateDto is null or blank.
  • Methodendetails