/* * Photo Image Print System * Copyright (C) 2000-2004 EPSON KOWA Corporation. * Copyright (C) SEIKO EPSON CORPORATION 2000-2004. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * As a special exception, EPSON KOWA Corporation gives permission to * link the code of this program with libraries which are covered by * the EPSON KOWA PUBLIC LICENCE and distribute their linked * combinations. You must obey the GNU General Public License in all * respects for all of the code used other than the libraries which * are covered by EPSON KOWA PUBLIC LICENCE. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "pferr.h" void pf_error_outbreak (int eid, char* expr) { if (eid == NO_ERROR) /* 正常 */ return; fprintf (stderr, "PIPS Error : "); if (expr != NULL) fprintf (stderr, "%s: ", expr); switch (eid) { case FILE_NOT_FOUND: /* 指定されたファイルが見付からない */ fprintf (stderr, "File not found.\n"); break; case NO_SUPPORT_ERROR: /* サポートされない形式のファイルが 入力された */ fprintf (stderr, "It is processing is failed.\n"); break; case LIB_PNG_ERROR: /* libpng処理中にエラー */ fprintf (stderr, "PNG processing is failed.\n"); break; case DLL_ERROR: /* DLL操作に失敗 */ fprintf (stderr, "Dynamic library processing is failed.\n"); break; case LIBPRT_ERROR: /* libprt内部のエラー */ fprintf (stderr, "An error is occurred in the library.\n"); break; case CONVERT_ERROR: /* 変換処理に失敗 */ fprintf (stderr, "Convert processing is failed.\n"); break; case MEMORY_ERROR: /* メモリーの確保に失敗 */ fprintf(stderr, "No allocate memory\n"); break; case UNEXPECTED_ERROR: /* 予期せぬエラー */ fprintf(stderr, "Unexpected error is occurred.\n"); break; case ABNORMAL_END: /* 異常終了 */ fprintf (stderr, "Was not able to print.\n"); break; case ATTRIBUTE_ERROR: fprintf (stderr, "Error occurred by read-in of Attribute.\n"); break; default: fprintf (stderr, "Unknown error (%d).\n", eid); if (expr != NULL) fprintf (stderr, "<< %s >>\n", expr); break; } return; }