本文整理汇总了Java中javax.management.openmbean.OpenDataException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java OpenDataException.printStackTrace方法的具体用法?Java OpenDataException.printStackTrace怎么用?Java OpenDataException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.management.openmbean.OpenDataException
的用法示例。
在下文中一共展示了OpenDataException.printStackTrace方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateCompositeType
import javax.management.openmbean.OpenDataException; //导入方法依赖的package包/类
public CompositeType generateCompositeType()
{
try
{
int nNbItems = m_arrItemDesc.size();
OpenType [] openTypes = new OpenType [nNbItems];
String [] itemTypeNames = new String [nNbItems];
String [] itemTypeDescriptions = new String [nNbItems];
for(int n=0; n<nNbItems; n++)
{
CompositeTypeDescItem itemDesc = m_arrItemDesc.get(n);
openTypes[n] = itemDesc.m_openType;
itemTypeNames[n] = itemDesc.m_csName;
itemTypeDescriptions[n] = itemDesc.m_csDescription;
}
CompositeType compositeType = new CompositeType(
m_csName,
m_csDescription,
itemTypeNames,
itemTypeDescriptions,
openTypes);
return compositeType;
}
catch (OpenDataException e)
{
e.printStackTrace();
}
return null;
}
示例2: generateCompositeData
import javax.management.openmbean.OpenDataException; //导入方法依赖的package包/类
public CompositeData generateCompositeData()
{
try
{
CompositeDataSupport compositeData = new CompositeDataSupport(m_compositeType, m_map);
return compositeData;
}
catch (OpenDataException e)
{
e.printStackTrace();
}
return null;
}