| Exception | Description |
|---|---|
| DescriptorNotCreatedException | Deprecated
Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com).
|
| HandlerNotFoundException | Deprecated
Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com).
|
| ObjectNotCreatedException | Deprecated
Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com).
|
Provides exception classes for the PCM wizard toolkit. These exceptions are caught by a specific wizard and indicate a design-time error.
The following is an example of when to use these exceptions:
public Class MyHandler extends AbstractObjectTypeHandler implements IService {
public static final String KEY = "com.sap.portal.admin.mywizard.handlers.myHandler";
public Object createObjectDescriptor(String targetId, CreateMethod method,
IWizardContext context) throws DescriptorNotCreatedException {
IObjectsManager manager = (IiViews)PortalRuntime.getRuntimeResources()
.getService(IMyProviderManager.KEY);
try
{
return manager.instantiateDescriptor(method,
targetId,
context.getRequest().getUser());
} catch (ObjectNotFoundException onfe)
{
throw new DescriptorNotCreatedException(onfe, "MyHandler Failed to create descriptor.");
} catch (OperationFailedException ofe)
{
throw new DescriptorNotCreatedException(ofe, "MyHandler Failed to create descriptor.");
}
}
}Copyright 2021 SAP SE Complete Copyright Notice