FileDocCategorySizeDatePackage
FactoryConfigurationError.javaAPI DocJava SE 6 API1937Tue Jun 10 00:27:10 BST 2008javax.xml.stream

FactoryConfigurationError

public class FactoryConfigurationError extends Error
An error class for reporting factory configuration errors.
version
1.0
author
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
since
1.6

Fields Summary
Exception
nested
Constructors Summary
public FactoryConfigurationError()
Default constructor

public FactoryConfigurationError(Exception e)
Construct an exception with a nested inner exception

param
e the exception to nest

    nested = e;
  
public FactoryConfigurationError(Exception e, String msg)
Construct an exception with a nested inner exception and a message

param
e the exception to nest
param
msg the message to report

    super(msg);
    nested = e;
  
public FactoryConfigurationError(String msg, Exception e)
Construct an exception with a nested inner exception and a message

param
msg the message to report
param
e the exception to nest

    super(msg);
    nested = e;
  
public FactoryConfigurationError(String msg)
Construct an exception with associated message

param
msg the message to report

    super(msg);
  
Methods Summary
public java.lang.ExceptiongetException()
Return the nested exception (if any)

return
the nested exception or null

    return nested;
  
public java.lang.StringgetMessage()
Report the message associated with this error

return
the string value of the message

    String msg = super.getMessage();
    if(msg != null)
      return msg;
    if(nested != null){
      msg = nested.getMessage();
      if(msg == null)
        msg = nested.getClass().toString();
    }
    return msg;