com.sapportals.wcm.repository

Class InvalidNameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sapportals.wcm.WcmException
              extended by com.sapportals.wcm.util.content.ContentException
                  extended by com.sapportals.wcm.repository.ResourceException
                      extended by com.sapportals.wcm.repository.InvalidNameException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExtensionDeniedException, InvalidCharacterException, NoExtensionDeniedException

public class InvalidNameException
extends ResourceException

The application tried to use a invalid resource name

See Also:
Serialized Form

Field Summary
static int CHARACTER_SEQUENCE_FORBIDDEN
           
protected static String current
           
static int EMPTY_NAME
           
static int INVALID_NAME
           
protected  IResource res
           
static int TOO_LONG_NAME
           
static int TRAILING_LEADING_SPACES
           
 
Fields inherited from class com.sapportals.wcm.WcmException
ex
 
Constructor Summary
InvalidNameException(ResourceNameInvalidException newEx, NameInfo ni)
          This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.
InvalidNameException(ResourceNameInvalidException newEx, NameInfo ni, int type, IResource res, String invalidString)
          This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.
InvalidNameException(String msg, NameInfo ni)
          Construct a new exception.
InvalidNameException(String msg, NameInfo ni, int type, IResource res, String invalidString)
          Construct a new exception with a specific type.
 
Method Summary
protected static ResourceBundles getBundle()
           
protected  Locale getLocale()
           
 String getLocalizedMessage()
           
 NameInfo getNameInfo()
          Returns a name info object of the repository
 
Methods inherited from class com.sapportals.wcm.repository.ResourceException
fillInStackTrace, getMessage, getNextResourceException, getResourceID, getRID, printStackTrace, printStackTrace, printStackTrace, setNextResourceException, toString
 
Methods inherited from class com.sapportals.wcm.WcmException
getContainedException, isLogged, setContainedException
 
Methods inherited from class java.lang.Throwable
getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_NAME

public static final int EMPTY_NAME
See Also:
Constant Field Values

TRAILING_LEADING_SPACES

public static final int TRAILING_LEADING_SPACES
See Also:
Constant Field Values

INVALID_NAME

public static final int INVALID_NAME
See Also:
Constant Field Values

TOO_LONG_NAME

public static final int TOO_LONG_NAME
See Also:
Constant Field Values

CHARACTER_SEQUENCE_FORBIDDEN

public static final int CHARACTER_SEQUENCE_FORBIDDEN
See Also:
Constant Field Values

current

protected static final String current
See Also:
Constant Field Values

res

protected IResource res
Constructor Detail

InvalidNameException

public InvalidNameException(String msg,
                            NameInfo ni)
Construct a new exception.

Parameters:
msg - The message text
ni - The name info object of the repository

InvalidNameException

public InvalidNameException(ResourceNameInvalidException newEx,
                            NameInfo ni)
This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.

Parameters:
newEx - The new exception.
ni - The name info object of the repository.

InvalidNameException

public InvalidNameException(String msg,
                            NameInfo ni,
                            int type,
                            IResource res,
                            String invalidString)
Construct a new exception with a specific type. It can be used by the UI to show friendly messages

Parameters:
msg - The message text
ni - The name info object of the repository

InvalidNameException

public InvalidNameException(ResourceNameInvalidException newEx,
                            NameInfo ni,
                            int type,
                            IResource res,
                            String invalidString)
This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API. Construct a new exception with a specific type. It can be used by the UI to show friendly messages

Parameters:
newEx - The new exception.
ni - The name info object of the repository.
Method Detail

getNameInfo

public NameInfo getNameInfo()
Returns a name info object of the repository

Returns:
a name info object of the repository

getLocale

protected Locale getLocale()

getBundle

protected static ResourceBundles getBundle()

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class ResourceException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice