Class BaseException

All Implemented Interfaces:
io.github.mmm.code.api.arg.CodeException, io.github.mmm.code.api.arg.CodeOperationArg, io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.arg.CodeExceptions, io.github.mmm.code.api.arg.CodeException>, io.github.mmm.code.api.element.CodeElement, io.github.mmm.code.api.element.CodeElementWithDeclaringType, io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.item.CodeItemWithComment, io.github.mmm.code.api.item.CodeItemWithDeclaringType, io.github.mmm.code.api.item.CodeItemWithType, io.github.mmm.code.api.item.CodeMutableItem, io.github.mmm.code.api.item.CodeMutableItemWithComment, io.github.mmm.code.api.item.CodeMutableItemWithType, io.github.mmm.code.api.merge.CodeMergeableItem<io.github.mmm.code.api.arg.CodeException>, io.github.mmm.code.api.merge.CodeSimpleMergeableItem<io.github.mmm.code.api.arg.CodeException>, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.node.CodeNodeItem, io.github.mmm.code.api.node.CodeNodeItemWithDeclaringOperation, io.github.mmm.code.api.object.CodeMutable

public class BaseException extends BaseOperationArg implements io.github.mmm.code.api.arg.CodeException
Base implementation of CodeException.
Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Constructor Details

    • BaseException

      public BaseException(BaseExceptions parent, AnnotatedType reflectiveObject)
      The constructor.
      Parameters:
      parent - the parent.
      reflectiveObject - the reflective object. May be null.
    • BaseException

      public BaseException(BaseException template, io.github.mmm.code.api.copy.CodeCopyMapper mapper)
      The copy-constructor.
      Parameters:
      template - the BaseException to copy.
      mapper - the CodeCopyMapper.
  • Method Details

    • getParent

      public BaseExceptions getParent()
      Specified by:
      getParent in interface io.github.mmm.code.api.node.CodeNode
      Specified by:
      getParent in interface io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.arg.CodeExceptions, io.github.mmm.code.api.arg.CodeException>
    • getDeclaringOperation

      public BaseOperation getDeclaringOperation()
      Specified by:
      getDeclaringOperation in interface io.github.mmm.code.api.node.CodeNodeItemWithDeclaringOperation
      Specified by:
      getDeclaringOperation in class BaseOperationArg
    • getDeclaringType

      public BaseType getDeclaringType()
      Specified by:
      getDeclaringType in interface io.github.mmm.code.api.item.CodeItemWithDeclaringType
    • getReflectiveObject

      public AnnotatedType getReflectiveObject()
      Specified by:
      getReflectiveObject in interface io.github.mmm.code.api.arg.CodeException
      Specified by:
      getReflectiveObject in interface io.github.mmm.code.api.item.CodeMutableItem
      Overrides:
      getReflectiveObject in class BaseMutableItem
    • getReflectiveObjectType

      protected Type getReflectiveObjectType()
      Specified by:
      getReflectiveObjectType in class BaseOperationArg
      Returns:
      the argument Type of the reflective object.
      See Also:
    • getSourceCodeObject

      public io.github.mmm.code.api.arg.CodeException getSourceCodeObject()
      Overrides:
      getSourceCodeObject in class BaseElement
      Returns:
      the optional internal CodeItem representing the source-code (to merge). Otherwise null. This is an internal API. Do not use or rely on it from outside.
    • merge

      public io.github.mmm.code.api.arg.CodeException merge(io.github.mmm.code.api.arg.CodeException other, io.github.mmm.code.api.merge.CodeMergeStrategy strategy)
      Specified by:
      merge in interface io.github.mmm.code.api.merge.CodeSimpleMergeableItem<io.github.mmm.code.api.arg.CodeException>
    • copy

      public BaseException copy()
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElement
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElementWithDeclaringType
      Specified by:
      copy in interface io.github.mmm.code.api.arg.CodeException
      Specified by:
      copy in interface io.github.mmm.code.api.item.CodeMutableItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItem
      Specified by:
      copy in interface io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.arg.CodeExceptions, io.github.mmm.code.api.arg.CodeException>
    • copy

      public BaseException copy(io.github.mmm.code.api.copy.CodeCopyMapper mapper)
      Specified by:
      copy in interface io.github.mmm.code.api.item.CodeMutableItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItem
      Specified by:
      copy in interface io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.arg.CodeExceptions, io.github.mmm.code.api.arg.CodeException>