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

tv.amwa.maj.exception

## Class BadTypeException

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

- All Implemented Interfaces:
    Serializable, MAJException

      public class BadTypeException
      extends RuntimeException
      implements MAJException

  Thrown when a method call on an object in the meta dictionary passes in the wrong type of property value as a parameter.

  Equivalent C result code: `AAFRESULT_BAD_TYPE 0x801200CC`

  See Also:
    `TypeDefinitionFixedArray`, `TypeDefinitionRecord`, `TypeDefinitionSet`, `TypeDefinitionStream`, `TypeDefinitionString`, `TypeDefinitionVariableArray`, Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BadTypeException()` Create a new bad type exception with no message.
    `BadTypeException(String msg)` Create a new bad type 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

    - #### BadTypeException

          public BadTypeException(String msg)

      Create a new bad type exception with the given descriptive message.

      Parameters:
        `msg` - Message describing the exception.

    - #### BadTypeException

          public BadTypeException()

      Create a new bad type exception with no message.

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