Code example for MalformedObjectNameException

Methods: printStackTrace

0
        this.objName = objName;
        try { 
            this.object = new ObjectName(objName);
            suffix = objName.substring(objName.lastIndexOf("=") + 1);
        } catch (MalformedObjectNameException e) {
            e.printStackTrace();
        } catch (NullPointerException e) {
            e.printStackTrace();
        } 
    } 
 
    public void setAttrName(String attrName) {
        assert (attrName != null && !attrName.isEmpty());
        this.attrName = attrName;
    } 
 
    public void setInterval(long interval) {
        assert (interval > 1);
        this.interval = interval;
    } 
Contextual code suggestions in your IDE  Get Codota for Java