Skip to content

# `typerig.core.base.message`

## typerig.core.base.message (version 0.0.2)

    # MODULE: Typerig / Base / Messages (Objects)
    # -----------------------------------------------------------
    # (C) Vassil Kateliev, 2020             (http://www.kateliev.com)
    # (C) Karandash Type Foundry            (http://www.karandash.eu)
    #------------------------------------------------------------
    # www.typerig.com

### Modules

- os
- warnings

### Classes

- exceptions.UserWarning(exceptions.Warning)
- - ContourWarning
  - FileImportWarning
  - FileOpenWarning
  - FileSaveWarning
  - FontWarning
  - GlyphWarning
  - JSONimportWarning
  - LayerWarning
  - NAMdataMissing
  - NAMimportWarning
  - NodeWarning
  - SVGimportWarning
  - TXTimportWarning
  - VFJimportWarning

## class ContourWarning(exceptions.UserWarning)

Method resolution order:
  ContourWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class FileImportWarning(exceptions.UserWarning)

Method resolution order:
  FileImportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class FileOpenWarning(exceptions.UserWarning)

Method resolution order:
  FileOpenWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class FileSaveWarning(exceptions.UserWarning)

      # -- IO Related ---------------------

Method resolution order:
  FileSaveWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class FontWarning(exceptions.UserWarning)

Method resolution order:
  FontWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class GlyphWarning(exceptions.UserWarning)

Method resolution order:
  GlyphWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class JSONimportWarning(exceptions.UserWarning)

Method resolution order:
  JSONimportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class LayerWarning(exceptions.UserWarning)

Method resolution order:
  LayerWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class NAMdataMissing(exceptions.UserWarning)

Method resolution order:
  NAMdataMissing
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class NAMimportWarning(exceptions.UserWarning)

Method resolution order:
  NAMimportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class NodeWarning(exceptions.UserWarning)

      # - Warnings -------------------------
      # -- Font related --------------------

Method resolution order:
  NodeWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class SVGimportWarning(exceptions.UserWarning)

Method resolution order:
  SVGimportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class TXTimportWarning(exceptions.UserWarning)

Method resolution order:
  TXTimportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

## class VFJimportWarning(exceptions.UserWarning)

Method resolution order:
  VFJimportWarning
  exceptions.UserWarning
  exceptions.Warning
  exceptions.Exception
  exceptions.BaseException
  builtin.object

#### Descriptors

weakref

      list of weak references to the object (if defined)

#### Methods from exceptions.UserWarning

init(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

#### Attributes from exceptions.UserWarning

new = <built-in method new of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

#### Methods from exceptions.BaseException

delattr(...)

      x.__delattr__('name') <==> del x.name

getattribute(...)

      x.__getattribute__('name') <==> x.name

getitem(...)

      x.__getitem__(y) <==> x[y]

getslice(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

reduce(...)

repr(...)

      x.__repr__() <==> repr(x)

setattr(...)

      x.__setattr__('name', value) <==> x.name = value

setstate(...)

str(...)

      x.__str__() <==> str(x)

unicode(...)

#### Descriptors from exceptions.BaseException

dict

args

message

### Functions

output(msg_type, app_name, message)

      # - Functions ------------------------

warning_custom(message, category, filename, lineno, file=None, line=None)