org.datanucleus.metadata
Class InvalidMetaDataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by org.datanucleus.exceptions.NucleusUserException
                      extended by org.datanucleus.metadata.InvalidMetaDataException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidPrimaryKeyException

public class InvalidMetaDataException
extends NucleusUserException

Representation of an exception thrown when an error occurs in Meta-Data definition. Provides a series of convenience constructors to accomodate the typical numbers of parameters embodies in messages.

Version:
$Revision: 1.5 $
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable cause
          Cause of the exception
protected  java.lang.String messageKey
          Message resources key
 
Constructor Summary
InvalidMetaDataException()
          Default Constructor
InvalidMetaDataException(Localiser localiser, java.lang.String key)
          Constructor with message resource
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1)
          Constructor with message resource, message param
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2)
          Constructor with message resource, message params
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
          Constructor with message resource, message params
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
          Constructor with message resource, message params
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4, java.lang.Object param5)
          Constructor with message resource, message params
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Throwable cause)
          Constructor with message resource, message params and cause exception
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Object param2, java.lang.Throwable cause)
          Constructor with message resource, message params and cause exception
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Object param1, java.lang.Throwable cause)
          Constructor with message resource, message param and cause exception
InvalidMetaDataException(Localiser localiser, java.lang.String key, java.lang.Throwable cause)
          Constructor with message resource and cause exception
 
Method Summary
 java.lang.String getMessageKey()
          Return message resource key
 void printStackTrace()
          Prints this Exception and its backtrace to the standard error output.
 void printStackTrace(java.io.PrintStream s)
          Prints this Exception and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this Exception and its backtrace to the specified print writer.
 
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageKey

protected java.lang.String messageKey
Message resources key


cause

protected java.lang.Throwable cause
Cause of the exception

Constructor Detail

InvalidMetaDataException

public InvalidMetaDataException()
Default Constructor


InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Throwable cause)
Constructor with message resource and cause exception

Parameters:
localiser - message resources
key - message resources key
cause - cause exception

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Throwable cause)
Constructor with message resource, message param and cause exception

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
cause - cause exception

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2,
                                java.lang.Throwable cause)
Constructor with message resource, message params and cause exception

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1
cause - cause exception

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2,
                                java.lang.Object param3,
                                java.lang.Throwable cause)
Constructor with message resource, message params and cause exception

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1
param3 - message resources param2
cause - cause exception

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key)
Constructor with message resource

Parameters:
localiser - message resources
key - message resources key

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1)
Constructor with message resource, message param

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2,
                                java.lang.Object param3)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param0
param2 - message resources param1
param3 - message resources param2

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2,
                                java.lang.Object param3,
                                java.lang.Object param4)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param1
param2 - message resources param2
param3 - message resources param3
param4 - message resources param4

InvalidMetaDataException

public InvalidMetaDataException(Localiser localiser,
                                java.lang.String key,
                                java.lang.Object param1,
                                java.lang.Object param2,
                                java.lang.Object param3,
                                java.lang.Object param4,
                                java.lang.Object param5)
Constructor with message resource, message params

Parameters:
localiser - message resources
key - message resources key
param1 - message resources param1
param2 - message resources param2
param3 - message resources param3
param4 - message resources param4
param5 - message resources param5
Method Detail

getMessageKey

public java.lang.String getMessageKey()
Return message resource key

Returns:
Message resource key

printStackTrace

public void printStackTrace()
Description copied from class: NucleusException
Prints this Exception and its backtrace to the standard error output. Print nested Throwables' stack trace as well.

Overrides:
printStackTrace in class NucleusException

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Description copied from class: NucleusException
Prints this Exception and its backtrace to the specified print stream. Print nested Throwables' stack trace as well.

Overrides:
printStackTrace in class NucleusException
Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Description copied from class: NucleusException
Prints this Exception and its backtrace to the specified print writer. Print nested Throwables' stack trace as well.

Overrides:
printStackTrace in class NucleusException
Parameters:
s - PrintWriter to use for output


Copyright © 2009. All Rights Reserved.