def make_bpd_error(s_code, s_message):
 class NewBPDError(BPDError, ):
  code = s_code
  message = s_message
  cmd_name = ''
  index = 0
  def __init__(self):
   pass
 return NewBPDError

def make_bpd_error ( s_code , s_message ) : class NewBPDError ( BPDError , ) : code = s_code message = s_message cmd_name = '' index = 0 def __init__ ( self ) : pass return NewBPDError
create a bpderror subclass for a static code and message .