Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

oracle.olapi.metadata
Class InvalidMetadataException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.olapi.metadata.InvalidMetadataException

public class InvalidMetadataException
extends java.lang.RuntimeException
implements HasLocalizedMessage

Indicates that one or more metadata objects are invalid. To find out which objects are invalid, use the getInvalidObjectIds method, which returns a Set of String objects, each of which is the unique identifier of an invalid MetadataObject. You can use the getMetadataObjects method of an MdmMetadataProvider to retrieve the MetadataObject instances that have those IDs. For each MetadataObject, you can then call the getErrorMessages method to retrieve the error messages for that object. If the number of errors for the object exceeds the error limit, then the getErrorMessages might not return all of the messages for the object. In that case, the hasMoreErrors method returns true.

See Also:
Serialized Form

Method Summary
 java.util.List getErrorMessages(MetadataObject object)
          Gets the error messages for the specified MetadataObject.
 java.util.List getErrorMessages(java.lang.String objectID)
          Gets the error messages for the MetadataObject that has the specified unique String identifier.
 java.util.Set getInvalidObjectIds()
          Gets the unique String identifier for each invalid MetadataObject.
 java.lang.String getLocalizedMessage()
          Gets a message in the language specified by the default java.util.Locale.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Gets a message in the language specified by the java.util.Locale object.
 boolean hasMoreErrors()
          Indicates whether the number of error messages generated for the invalid MetadataObject objects is greater than the limit of error messages that Oracle OLAP allows.
 java.lang.String toString()
          Gets a String that describes this InvalidMetadataException.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, printStackTrace, printStackTrace, printStackTrace

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

getInvalidObjectIds

public java.util.Set getInvalidObjectIds()
Gets the unique String identifier for each invalid MetadataObject.
Returns:
A Set that contains the IDs of the invalid MetadataObject objects.

getErrorMessages

public java.util.List getErrorMessages(java.lang.String objectID)
Gets the error messages for the MetadataObject that has the specified unique String identifier.
Returns:
A List that contains the error messages for the MetadataObject with the specified ID.

getErrorMessages

public java.util.List getErrorMessages(MetadataObject object)
Gets the error messages for the specified MetadataObject.
Returns:
A List that contains the error messages for the specified MetadataObject.

hasMoreErrors

public boolean hasMoreErrors()
Indicates whether the number of error messages generated for the invalid MetadataObject objects is greater than the limit of error messages that Oracle OLAP allows. If this method returns true, then the getErrorMessage and getErrorMessages methods might not have all of the error messages.
Returns:
true if the number of error messages exceeds the limit and false otherwise.

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Gets a message in the language specified by the java.util.Locale object.
Specified by:
getLocalizedMessage in interface HasLocalizedMessage
Parameters:
locale - The Locale object that specifies the language for the message.
Returns:
A String that has the message in the specified language.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets a message in the language specified by the default java.util.Locale.
Returns:
A String that has the message in the language of the default Locale.
Overrides:
getLocalizedMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Gets a String that describes this InvalidMetadataException.
Returns:
A String that describes this InvalidMetadataException.
Overrides:
toString in class java.lang.Throwable

Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

Copyright © 2002, 2003, Oracle. All Rights Reserved.