异常管理

Error message.

CG errors.

exception rayvision_utils.exception.exception.AnalyseFailError

基类:AnalyzeError

Analyse Fail Error.

exception rayvision_utils.exception.exception.AnalyzeError

基类:Exception

Analyze has a damage error.

exception rayvision_utils.exception.exception.CGExeNotExistError

基类:AnalyzeError

No errors in CG boot.

exception rayvision_utils.exception.exception.CGFileNameIllegalError

基类:AnalyzeError

CG File Name Illegal Error.

exception rayvision_utils.exception.exception.CGFileNotExistsError

基类:AnalyzeError

CG file does not exist error.

exception rayvision_utils.exception.exception.CGFileZipFailError

基类:AnalyzeError

CG file compression failed error.

exception rayvision_utils.exception.exception.CompressionFailedError

基类:Exception

Compression failed error.

exception rayvision_utils.exception.exception.DecompressionFailedError

基类:Exception

Unzip failed error.

exception rayvision_utils.exception.exception.FileNameContainsChineseError

基类:AnalyzeError

File Name Contains Chinese Error.

exception rayvision_utils.exception.exception.GetCGLocationError

基类:AnalyzeError

Error getting CG local path.

exception rayvision_utils.exception.exception.GetCGVersionError

基类:AnalyzeError

Error getting CG version.

exception rayvision_utils.exception.exception.GetRendererError

基类:AnalyzeError

Get renderer error.

exception rayvision_utils.exception.exception.MaxDamageError

基类:AnalyzeError

Max has a damage error.

exception rayvision_utils.exception.exception.MaxExeNotExistError

基类:AnalyzeError

There are no errors in the Max startup file.

exception rayvision_utils.exception.exception.MultiScatterAndVrayConfilictError

基类:AnalyzeError

Multi scatter and vray Confilict error.

exception rayvision_utils.exception.exception.ProjectMaxVersionError

基类:AnalyzeError

Project Max version error.

exception rayvision_utils.exception.exception.RayvisionAPIError(error_code, error, request)

基类:RayvisionError

Raise RayVisionAPIError.

exception rayvision_utils.exception.exception.RayvisionError(error_code, error, *args, **kwargs)

基类:Exception

Raise RayvisionError if something wrong.

class rayvision_utils.exception.exception.RayvisionHTTPErrorProcessor

基类:HTTPErrorProcessor

Process HTTP error responses.

Inherit HTTPErrorProcessor in urllib2.

http_response(request, response)

Override the http_response method of HTTPErrorProcessor.

Process the response,when it is a bad Request,the corresponding exception is reported.

参数:
  • request (urllib2.Request) -- Request object.

  • response (opener.open) -- Response object.

返回:

Abnormal response.

返回类型:

Exception

exception rayvision_utils.exception.exception.RayvisonTaskIdError(error)

基类:RayvisionError

Raise RayVisonTaskIdError.

exception rayvision_utils.exception.exception.VersionNotMatchError

基类:AnalyzeError

Version not match error.

Handle tips messages and write them to tips.json.

class rayvision_utils.exception.tips.TipsInfo(save_path=None)

基类:object

Handling errors encountered in the analysis.

add(key, *values)

Add tips message.

参数:
  • key (str) -- TipsInfo code.

  • values (tuple) --

    TipsInfo message. e.g.:

    ('Scene file no exists', 'Missing renderer')

save_and_exit(path, exit_code=-1)

Save the prompt to the tips.json file and exit.

参数:
  • path (str) -- The configuration information path path.

  • exit_code (int) -- Exit code, default is -1.

save_tips(path=None)

Save the prompt to the tips.json file.

参数:

path (str, optional) -- The configuration information path path.

set_tips(key, value)

Set tips message.

参数:
  • key (str) -- TipsInfo code.

  • value (str) -- TipsInfo message.