Changeset 2559


Ignore:
Timestamp:
02/08/13 16:06:56 (11 years ago)
Author:
mwindhouwer
Message:

M clarin/ws/cmd-core/validate.acc

  • it's not only getting the CMD profile that can go wrong, so now show the error message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-site/site/clarin/ws/cmd-core/validate.acc

    r2029 r2559  
    172172            <target>this:response</target>
    173173        </instr>
     174        <exception>
     175            <instr>
     176                <type>copy</type>
     177                <operand>this:exception</operand>
     178                <target>ffcpl:/trace/clarin-ws-cmd-core.validate.exception.xml</target>
     179            </instr>
     180            <instr>
     181                <type>xslt2</type>
     182                <operand>this:exception</operand>
     183                <operator>
     184                    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
     185                        <xsl:template match="/">
     186                            <fieldset style="border: red dotted 1px;padding:1em;">
     187                                <legend style="font-weight:bold;">An unexpected error occured while validating an instance of the CMD core model for CLARIN Web Service descriptions!</legend>
     188                                <p>The following error occurred:</p>
     189                                <p>&#160;</p>
     190                                <quote style="border: gray dotted 1px;margin:1em;padding:1em;background-color:lightgray;">
     191                                    <xsl:value-of select="(.//message)[last()]"/>
     192                                </quote>
     193                                <p>&#160;</p>
     194                                <p>If this indicates a problem om the server side please contact:
     195                                    <a href="mailto:Menzo.Windhouwer@mpi.nl">Menzo Windhouwer</a>.</p></fieldset>
     196                        </xsl:template>
     197                    </xsl:stylesheet>
     198                </operator>
     199                <target>this:response</target>
     200            </instr>
     201        </exception>
    174202    </idoc>
    175203    <exception>
    176204        <debug/>
    177         <trace>ffcpl:/trace/clarin-ws-cmd-core.validate.exception.xml</trace>
    178         <response>
    179             <fieldset style="border: red dotted 1px;padding:1em;">
    180                 <legend style="font-weight:bold;">The CMD profile couldn't be accesses!</legend>
    181                 Maybe the CMD ComponentRegistry is down? If this keeps on happening please contact:
    182                     <a href="mailto:Menzo.Windhouwer@mpi.nl">Menzo Windhouwer</a>. </fieldset>
    183         </response>
     205        <trace>ffcpl:/trace/clarin-ws-cmd-core.validate.fatal-exception.xml</trace>
     206        <throw/>
    184207    </exception>
    185208    <response>
Note: See TracChangeset for help on using the changeset viewer.