ObjectAlreadyAttachedException (Media Authoring with Java API)
Date: 2016-02-05

tv.amwa.maj.exception

## Class ObjectAlreadyAttachedException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - tv.amwa.maj.exception.ObjectAlreadyAttachedException

- All Implemented Interfaces:
    Serializable, MAJException

      public class ObjectAlreadyAttachedException
      extends RuntimeException
      implements MAJException

  Thrown when an attempt is made to attach an item to a collection that it already contains.

  Equivalent C result code: `AAFRESULT_OBJECT_ALREADY_ATTACHED 0x80120132`

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectAlreadyAttachedException()` Create a new object already attached exception with no message.
    `ObjectAlreadyAttachedException(String msg)` Create a new object already attached exception with the given descriptive message.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ObjectAlreadyAttachedException

          public ObjectAlreadyAttachedException(String msg)

      Create a new object already attached exception with the given descriptive message.

      Parameters:
        `msg` - Message describing the exception.

    - #### ObjectAlreadyAttachedException

          public ObjectAlreadyAttachedException()

      Create a new object already attached exception with no message.

(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.