[Ljava.lang.StackTraceElement; @ 19821f例外

时间:2014-01-13 19:20:59

标签: java

我有以下问题

我在类中定义了Point []数组,例如

private Point[] dataPoints

Class Point包括以下

public class Point {
public double x;
public double y;
public double z1;
public double z2;
public double z3;
public double z4;
public double z5; 
public int index;

public Point() {
}

public Point(double x, double y,double z3,double z4, double z5, double z6, double z7,  int index) {
    this.x = x;
    this.y = y;
    this.z1= z3; 
    this.z2= z4; 
    this.z3= z5; 
    this.z4= z6; 
    this.z5= z7; 
    this.index = index;
} 
}

当我从班级打电话给班级时

        dataPoints[pointIndex] = new Point(x,y,z3,z4,z5,z6,z7,pointIndex);

我从catch异常声明中得到以下错误

[Ljava.lang.StackTraceElement;@19821f 

1 个答案:

答案 0 :(得分:0)

使用Try / catch并通过e.getStackTrace()捕获该异常。