Commit Graph

375 Commits

Author SHA1 Message Date
Abdullah Tahiri
2c5bc5d69a Exception: FUNCSIG instead of PRETTY_FUNCTION for Microsoft compiler 2017-05-05 15:15:49 +02:00
Abdullah Tahiri
1091511c77 Base::Exception extension
=========================

1. Enable automatic storing of information (function, file, line) when throwing the exception via macro:

Examples:

THROWM(Exception, "BSpline GeoId is out of bounds.")
THROWM(ValueError, "BSpline GeoId is out of bounds.")

THROW(AbortException)

Output:

a) Python Console (what()):
App.ActiveDocument.Sketch004.modifyBSplineKnotMultiplicity(16,3,0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
Base.FreeCADError: FreeCAD exception thrown (BSpline GeoId is out of bounds.)

b) ReportException (report()):
Exception (Thu Apr 27 19:15:24 2017): BSpline GeoId is out of bounds. in bool Sketcher::SketchObject::modifyBSplineKnotMultiplicity(int, int, int) in src/Mod/Sketcher/App/SketchObject.cpp:4102

2. Extend the basic framework so as to allow more control over the mangling of the message introduced by the user, setting the basis to allow, where needed,
 to preserve the original message while allowing full legacy behaviour.

3. Supporting FileDialog reporting as legacy
2017-05-03 22:08:10 +02:00
Abdullah Tahiri
c974e9d752 Exception: Add CADKernelError exception for specialized OCC exception propagation to App::DocumentObject 2017-05-03 22:08:10 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
df1e2642d0 replacement for PR 698 2017-04-27 23:05:40 +02:00
wmayer
63cb979328 fix reference leak 2017-04-27 15:26:46 +02:00
wmayer
a2dd176bc2 issue #0002996: PyObjectBase notification chain can lead to unexpected changes to document 2017-04-27 15:09:28 +02:00
wmayer
004324bbc5 fix scan coverity issues: uncaught exception 2017-04-11 14:03:08 +02:00
Ian Rees
f13aac4dd7 Send console Log/Warning/Error to stderr vs stdout 2017-04-08 14:29:02 +02:00
Ian Rees
ec715e36fd Linux/MacOS - only write colour codes to TTYs
This prevents the colour codes from showing up in piped output, file
redirects, etc.
2017-04-08 14:29:02 +02:00
Ian Rees
4976c0dc4a Use colour output from main executable on MacOS 2017-04-08 14:29:02 +02:00
AjinkyaDahale
b60fe48564 Fixed Typos 2017-03-19 18:09:15 -03:00
Bernd Hahnebach
0f90e25638 Base: add unit for kinematic viscosity 2017-03-18 22:07:24 +01:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
Ian Rees
ac9f475702 Clean up clang inconsistent override warnings. 2017-03-01 22:00:41 +01:00
hgutsche
de8f66f857 Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows 2017-02-28 18:52:04 +01:00
wmayer
bc525a41e6 fix crash due to GIL 2017-02-18 08:19:25 +01:00
wmayer
19111f1ed7 issue #2902: track attribute objects in parent structure to notify about changes 2017-02-14 16:38:38 +01:00
wmayer
4f23b569b3 issue #0002902: replace members of PyObjectBase with a PyDictObject 2017-02-14 13:09:09 +01:00
wmayer
b72aa9f369 issue #0002902: PyObjectBase notification chain can lead to unexpected changes to document 2017-02-14 00:32:30 +01:00
wmayer
33e0bc3a46 fix various warnings 2017-02-02 20:42:56 +01:00
wmayer
36e1d072a6 fix -Wunused-variable 2017-01-27 16:10:19 +01:00
looooo
9f2a389dbc py3: add PyMOD_INIT_FUNC
from: py3: ported module init to python3, wwmayer
2017-01-25 10:16:06 +01:00
wmayer
66b91b1cdf partially revert changes of issue #0002858 and add IsEqual method 2017-01-22 15:33:26 +01:00
wmayer
39bd5ea525 issue #0002867: AttachExtension crash 2017-01-19 21:48:17 +01:00
wmayer
6e7c4915a3 fixes #0002858: Vector2d Equality Incorrect 2017-01-15 16:34:14 +01:00
wmayer
efe14610b7 fix & suppress warnings of generated code 2016-12-30 13:31:31 +01:00
wmayer
421cb85865 recreate lexer files without deprecated register keyword 2016-12-29 23:18:23 +01:00
wmayer
a3ad63a750 suppress -Wself-assign in generated code 2016-12-29 21:44:23 +01:00
wmayer
324ee97f0f suppress -Wdeprecated-register 2016-12-29 21:02:34 +01:00
Kurt Kremitzki
5c619ee285 Handle right and left hand scalar-vector multiplication 2016-12-28 13:20:03 +01:00
wmayer
7716e94042 fix whitespaces 2016-12-21 17:08:36 +01:00
Bernd Hahnebach
46d8a64389 Base: units, code formating 2016-12-21 11:27:41 -02:00
vdwalts
9a3b750fb7 Base: Units for FEM, new heat and heat flux functions 2016-12-21 11:27:41 -02:00
kgoao
96a705dc7d FEM: FemConstraintHeatflux: Add DFLUX option to heat flux constraint 2016-12-21 11:27:41 -02:00
wmayer
5e375a6238 Add switch to select between Qt4 and Qt5 2016-12-13 15:53:13 +01:00
wmayer
166fc624eb remove superfluous Qt includes 2016-12-13 15:40:49 +01:00
wmayer
3565d4ef18 move Hat and Dyadic product to Matrix class 2016-12-04 17:05:58 +01:00
WandererFan
429eb0f727 DPG improvements
eliminate orientation matrix
remove appl logic from dialog
add 3D/Front buttons
2016-12-04 15:25:47 +01:00
wmayer
95768acf65 declare some PyCXX functions for export, add PyCXX wrapper for Vector2dPy class 2016-11-24 15:25:48 +01:00
wmayer
03ab1a4a4d fix build problems on Linux/OSX 2016-11-22 16:16:48 +01:00
wmayer
9bdad96a69 add Python wrappers for Geom2d classes 2016-11-22 14:09:19 +01:00
wmayer
14594dde32 add simple Python wrapper for Vector2d class 2016-11-21 22:01:34 +01:00
wmayer
e54e9515fc rename 2d tool classes to be consistent with 3d classes 2016-11-21 14:29:51 +01:00
Yorik van Havre
af97583026 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
48c118c5e0 Doc: small adjustments to doxygen docs 2016-11-15 16:17:58 -02:00
wmayer
fc2bbf52f9 remove deprecated macros 2016-11-09 16:58:54 +01:00
wmayer
5f12a043fa fix several gcc warnings 2016-11-08 14:31:08 +01:00
wmayer
9fe82bfbb9 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
Stefan Tröger
3a51404dd5 Extenions: Drop virtual inheritance
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00