From 431f744958859d992c5ceab44a151a7ce243749e Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 23 Oct 2013 17:22:07 +0200 Subject: [PATCH] 0001285: update doc --- src/Base/RotationPyImp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Base/RotationPyImp.cpp b/src/Base/RotationPyImp.cpp index 2cf30426cd..8e08e321d7 100644 --- a/src/Base/RotationPyImp.cpp +++ b/src/Base/RotationPyImp.cpp @@ -106,7 +106,13 @@ int RotationPy::PyInit(PyObject* args, PyObject* /*kwd*/) return 0; } - PyErr_SetString(PyExc_Exception, "empty parameter list, four floats or Vector and float"); + PyErr_SetString(PyExc_TypeError, "Rotation constructor accepts:\n" + "-- empty parameter list\n" + "-- Rotation object" + "-- four floats (a quaternion)\n" + "-- three floats (yaw, pitch, roll)" + "-- Vector (rotation axis) and float (rotation angle)\n" + "-- two Vectors (two axes)"); return -1; }