mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-16 11:21:38 +08:00
Start on the global problem class.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
class SimPEGException(Exception):
|
||||
|
||||
def __init__(self, reason=''):
|
||||
self.reason = reason
|
||||
|
||||
def __str__(self):
|
||||
return '%s: %s' %(self.__class__.__name__, self.reason)
|
||||
|
||||
|
||||
class PairingException(SimPEGException):
|
||||
pass
|
||||
Reference in New Issue
Block a user