nitc :: CmdWarning
Command warnings are returned when the command cannot provide results because of a problem on the model-end (i.e. No documentation for a MEntity, no code etc.)
nitc :: CmdWarning :: _http_status_code
nitc :: CmdWarning :: defaultinit
nitc $ CmdWarning :: SELF
Type of this instance, automatically specialized in every classnitc :: commands_http $ CmdWarning :: http_status_code
HTTP code to return for this messagenitc :: commands_http $ CmdWarning :: http_status_code=
HTTP code to return for this messagenitc :: term $ CmdWarning :: print_message
nitc :: html_commands $ CmdWarning :: to_html
Render the message as a HTML stringnitc :: md_commands $ CmdWarning :: to_md
Render the message as a HTML stringnitc :: CmdWarning :: _http_status_code
nitc :: CmdMessage :: _http_status_code
HTTP code to return for this messagecore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: CmdMessage :: defaultinit
nitc :: CmdWarning :: defaultinit
core :: Object :: defaultinit
nitc :: CmdMessage :: http_status_code
HTTP code to return for this messagenitc :: CmdMessage :: http_status_code=
HTTP code to return for this messagecore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: CmdMessage :: print_message
nitc :: CmdMessage :: to_json
Return a JSON Serializable representation ofself
mentity
mentity
# Command Warning
#
# Command warnings are returned when the command cannot provide results because
# of a problem on the model-end (i.e. No documentation for a MEntity, no code etc.)
abstract class CmdWarning
super CmdMessage
end
src/doc/commands/commands_base.nit:104,1--110,3
redef class CmdWarning
redef var http_status_code = 404
end
src/doc/commands/commands_http.nit:91,1--93,3
redef class CmdWarning
redef fun to_md do return "**Warning: {to_s}**"
end
src/doc/templates/md_commands.nit:42,1--44,3
redef class CmdWarning
redef fun print_message(no_color) do
var res = "Warning: {to_s}"
if no_color == null or not no_color then res = res.bold.yellow
print res
end
end
src/doc/term/term.nit:60,1--66,3
redef class CmdWarning
redef fun to_html do return "<p class='text-warning'>Warning: {to_s}</p>"
end
src/doc/templates/html_commands.nit:45,1--47,3